Преглед изворни кода

testing other lib function

tags/v1.0
Robin Thoni пре 9 година
родитељ
комит
acc5808567
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4
    2
      src/mainclass.cpp

+ 4
- 2
src/mainclass.cpp Прегледај датотеку

90
           if (get_current_device() == -1 &&
90
           if (get_current_device() == -1 &&
91
             !set_current_device(arg))
91
             !set_current_device(arg))
92
             return false;
92
             return false;
93
-          pifacedigital_write_reg(opt == 'u' ? up_pin(arg) : down_pin(arg),
93
+          pifacedigital_write_bit(opt == 'u', arg, OUTPUT,
94
+            get_current_device());
95
+          /*pifacedigital_write_reg(opt == 'u' ? up_pin(arg) : down_pin(arg),
94
             OUTPUT, get_current_device());
96
             OUTPUT, get_current_device());
95
-          std::cout << std::hex << (int)get_pins() << std::endl;
97
+          std::cout << std::hex << (int)get_pins() << std::endl;*/
96
           return true;
98
           return true;
97
           });
99
           });
98
     }
100
     }

Loading…
Откажи
Сачувај