Skip to content

Commit

Permalink
Changed 'activate()' into 'enable()'
Browse files Browse the repository at this point in the history
When kickoff button is pressed multiple times, command will be resend instead of null command
  • Loading branch information
Sirkle23 authored Jun 19, 2023
1 parent b66cd06 commit e6f257a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mslrb2015/RefreshButon.pde
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ void RefreshButonStatus1() {
if(StateMachine.setpiece)
{
if(StateMachine.setpiece_left){
buttonFromEnum(ButtonsEnum.BTN_L_KICKOFF).activate();
buttonFromEnum(ButtonsEnum.BTN_L_KICKOFF).enable();
buttonFromEnum(ButtonsEnum.BTN_R_KICKOFF).disable();

}else{
buttonFromEnum(ButtonsEnum.BTN_L_KICKOFF).disable();
buttonFromEnum(ButtonsEnum.BTN_R_KICKOFF).activate();
buttonFromEnum(ButtonsEnum.BTN_R_KICKOFF).enable();
}

buttonFromEnum(ButtonsEnum.BTN_RESET).disable();
Expand Down Expand Up @@ -57,7 +57,7 @@ void RefreshButonStatus1() {
buttonAdisable(); //team A commands
buttonBdisable(); //team B commands
buttonCdisable(); //common commands
buttonFromEnum(StateMachine.setpiece_button).activate();
buttonFromEnum(StateMachine.setpiece_button).enable();
buttonFromEnum(ButtonsEnum.BTN_START).enable();
buttonFromEnum(ButtonsEnum.BTN_PARK).disable();
}else{
Expand Down

0 comments on commit e6f257a

Please sign in to comment.