Compare commits
2 Commits
606219b8bd
...
d81ab7da89
| Author | SHA1 | Date | |
|---|---|---|---|
| d81ab7da89 | |||
| 5e5ff83506 |
@@ -165,16 +165,28 @@ 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;
|
// ignore button press while in fight
|
||||||
buttonREDTEAMtapout = receiveDATA.buttonREDTEAMtapout;
|
if (!FightCountDown.isRunning()) {
|
||||||
|
buttonREDTEAMvar = receiveDATA.buttonREDTEAM;
|
||||||
|
}
|
||||||
|
// ignore tapout while not in fight
|
||||||
|
if (FightCountDown.isRunning()) {
|
||||||
|
buttonREDTEAMtapout = receiveDATA.buttonREDTEAMtapout;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
// 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;
|
// ignore button press while in fight
|
||||||
buttonBLUETEAMtapout = receiveDATA.buttonBLUETEAMtapout;
|
if (!FightCountDown.isRunning()) {
|
||||||
|
buttonBLUETEAMvar = receiveDATA.buttonBLUETEAM;
|
||||||
|
}
|
||||||
|
// ignore tapout while not in fight
|
||||||
|
if (FightCountDown.isRunning()) {
|
||||||
|
buttonBLUETEAMtapout = receiveDATA.buttonBLUETEAMtapout;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user