Browse Source

testing other lib function

tags/v1.0
Robin Thoni 10 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
           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…
Cancel
Save