fixed remote PitHold, added persistant boardID
This commit is contained in:
@@ -9,13 +9,15 @@ void pollInput (){
|
||||
switchRUMBLE.poll();
|
||||
switchPIT.poll();
|
||||
|
||||
buttonSTARTvar = buttonSTART.singleClick();
|
||||
buttonSTARTforced = buttonSTART.longPress();
|
||||
buttonPAUSEvar = buttonPAUSE.singleClick();
|
||||
buttonPITvar = buttonPIT.singleClick();
|
||||
buttonPIThold = buttonPIT.on();
|
||||
buttonRESETvar = buttonRESET.longPress();
|
||||
|
||||
// only set the var if the button was actually pushed or released, to prevent overriding data from the remote
|
||||
if (buttonSTART.singleClick() || buttonSTART.longPress() || buttonPAUSE.singleClick() || buttonPIT.singleClick() || buttonPIT.switched() || buttonRESET.longPress()) {
|
||||
buttonSTARTvar = buttonSTART.singleClick();
|
||||
buttonSTARTforced = buttonSTART.longPress();
|
||||
buttonPAUSEvar = buttonPAUSE.singleClick();
|
||||
buttonPITvar = buttonPIT.singleClick();
|
||||
buttonPIThold = buttonPIT.on();
|
||||
buttonRESETvar = buttonRESET.longPress();
|
||||
}
|
||||
// if (buttonREDTEAM.pushed()) {
|
||||
// buttonREDTEAMvar = true;
|
||||
// if (ARENA_READY && !REDTEAM_READY) {
|
||||
|
||||
Reference in New Issue
Block a user