From 003c12358ec267275c00616ba967f7cdc96a383e Mon Sep 17 00:00:00 2001 From: benjaminwp18 <90342856+benjaminwp18@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:26:07 -0400 Subject: [PATCH] Don't get commands while moving motor --- src/float/float_transceiver/float_transceiver.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/float/float_transceiver/float_transceiver.ino b/src/float/float_transceiver/float_transceiver.ino index a86cb77f..3ec233f4 100644 --- a/src/float/float_transceiver/float_transceiver.ino +++ b/src/float/float_transceiver/float_transceiver.ino @@ -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) {