Permalink
Browse files

Allow digital I/O and solenoid outputs to be set in a disabled state.

  • Loading branch information...
1 parent 90fcdad commit ad6a4cd918f27129dcb4eda41a595187b819bb78 @ericbarch ericbarch committed Feb 17, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/RobotOpen/RobotOpen.cpp
@@ -509,13 +509,13 @@ void RobotOpenClass::writePWM(byte channel, byte pwmVal) {
}
void RobotOpenClass::writeSolenoid(byte channel, uint8_t state) {
- if (_enabled && channel < 8) {
+ if (channel < 8) {
digitalWrite(39+channel, state);
}
}
void RobotOpenClass::writeDigital(byte channel, uint8_t state) {
- if (_enabled && channel < 22 && digitalOutputChannels[channel] == true) {
+ if (channel < 22 && digitalOutputChannels[channel] == true) {
if (channel < 3)
digitalWrite(47+channel, state);
else

0 comments on commit ad6a4cd

Please sign in to comment.