Browse Source

fixed gpio init

old
Robin Thoni 10 years ago
parent
commit
8f2a2d81be
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      server/gpiomanager.cpp

+ 1
- 1
server/gpiomanager.cpp View File

11
 
11
 
12
 bool GpioManager::init(const QVariant &pins)
12
 bool GpioManager::init(const QVariant &pins)
13
 {
13
 {
14
-    if (!wiringPiSetupPhys())
14
+    if (wiringPiSetupPhys())
15
         return false;
15
         return false;
16
     auto list = pins.toList();
16
     auto list = pins.toList();
17
     foreach (auto pin, list)
17
     foreach (auto pin, list)

Loading…
Cancel
Save