Skip to content

Commit

Permalink
removing unuser serial reference
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 11, 2016
1 parent 9ec077a commit 4bb411a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions PinFunctions.cpp
Expand Up @@ -12,7 +12,6 @@ void SetServoPosDataTable(uint8_t pin, uint16_t val, float time);
DATA_STRUCT * DyioPinFunctionData;
Servo myservo[MAX_SERVOS]; // create servo object to control a servo
INTERPOLATE_DATA velocity[MAX_SERVOS]; // servo position interpolation
SoftwareSerial * mySerial; // RX, TX

boolean startupFlag = false;
int32_t GetConfigurationDataTable(uint8_t pin) {
Expand All @@ -25,10 +24,7 @@ boolean setMode(uint8_t pin, uint8_t mode) {
if (GetChannelMode(pin) == IS_SERVO) {
myservo[PIN_TO_SERVO(pin)].detach();
}
if (GetChannelMode(pin) == IS_DEBUG_RX || GetChannelMode(pin) == IS_DEBUG_TX) {
mySerial->end();
startDebugPint(NULL);
}

_EEWriteMode(pin, mode);
//getBcsIoDataTable(pin)->PIN.currentChannelMode = mode;
println_I("New Mode set: ");
Expand Down

0 comments on commit 4bb411a

Please sign in to comment.