Skip to content

Commit

Permalink
Don't get commands while moving motor
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwp18 committed Jun 19, 2024
1 parent 5785c5f commit 003c123
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/float/float_transceiver/float_transceiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ void setup() {
}

void loop() {
bool submergeReceived = receiveCommand();
bool submergeReceived = false;
if (!stageIs(StageType::Suck) && !stageIs(StageType::Pump)) {
submergeReceived = receiveCommand();
}

if (overrideState == OverrideState::Suck) {
if (digitalRead(LIMIT_FULL) == HIGH) {
Expand Down

0 comments on commit 003c123

Please sign in to comment.