prevent Team buttons being pushed in a running fight
This commit is contained in:
@@ -165,7 +165,9 @@ void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) {
|
|||||||
// RED team button
|
// RED team button
|
||||||
// ignore button input if in rumble mode
|
// ignore button input if in rumble mode
|
||||||
if (!switchRUMBLE.on()) {
|
if (!switchRUMBLE.on()) {
|
||||||
buttonREDTEAMvar = receiveDATA.buttonREDTEAM;
|
if (!FightCountDown.isRunning()) {
|
||||||
|
buttonREDTEAMvar = receiveDATA.buttonREDTEAM;
|
||||||
|
}
|
||||||
buttonREDTEAMtapout = receiveDATA.buttonREDTEAMtapout;
|
buttonREDTEAMtapout = receiveDATA.buttonREDTEAMtapout;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -173,7 +175,9 @@ void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) {
|
|||||||
// BLUE team button
|
// BLUE team button
|
||||||
// ignore button input if in rumble mode
|
// ignore button input if in rumble mode
|
||||||
if (!switchRUMBLE.on()) {
|
if (!switchRUMBLE.on()) {
|
||||||
buttonBLUETEAMvar = receiveDATA.buttonBLUETEAM;
|
if (!FightCountDown.isRunning()) {
|
||||||
|
buttonBLUETEAMvar = receiveDATA.buttonBLUETEAM;
|
||||||
|
}
|
||||||
buttonBLUETEAMtapout = receiveDATA.buttonBLUETEAMtapout;
|
buttonBLUETEAMtapout = receiveDATA.buttonBLUETEAMtapout;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user