Browse Source

testing other lib function

tags/v1.0
Robin Thoni 9 years ago
parent
commit
acc5808567
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/mainclass.cpp

+ 4
- 2
src/mainclass.cpp View File

@@ -90,9 +90,11 @@ bool MainClass::build_actions_()
90 90
           if (get_current_device() == -1 &&
91 91
             !set_current_device(arg))
92 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 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 98
           return true;
97 99
           });
98 100
     }

Loading…
Cancel
Save