Skip to content

Commit

Permalink
Corrected port for inhibit and state in IDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
jepohle committed May 31, 2024
1 parent 9e3c90b commit fc1caac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firmware/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void enable_io(String mode){
idle = false;
// delay(1000);
}
else if (mode == "RALL"){ // Turn on routing for augmented lead positions
else if (mode == "RALL"){ // Turn on routing for right arm - left leg lead positions
MsgPack::str_t s = "RALL";
MsgPack::Packer packer;
packer.serialize(s); // Serialise data
Expand All @@ -64,7 +64,7 @@ void enable_io(String mode){
idle = false;
// delay(1000);
}
else if (mode == "LARA"){ // Turn on routing for augmented lead positions
else if (mode == "LARA"){ // Turn on routing for left arm - right arm lead positions
MsgPack::str_t s = "LARA";
MsgPack::Packer packer;
packer.serialize(s); // Serialise data
Expand All @@ -75,12 +75,12 @@ void enable_io(String mode){
idle = false;
// delay(1000);
}
else if (mode == "IDLE"){ // Turn on routing for augmented lead positions
else if (mode == "IDLE"){ // Go to idle mode
MsgPack::str_t s = "IDLE";
MsgPack::Packer packer;
packer.serialize(s); // Serialise data
Serial.write(packer.data(), packer.size()); // Send data
digitalWrite(5, HIGH);
digitalWrite(4, LOW);
idle = true;
// delay(1000);
}
Expand Down

0 comments on commit fc1caac

Please sign in to comment.