From 10b71735a065ae85e501ab8f9e043a31199332cb Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Wed, 30 Mar 2016 20:05:31 +0100 Subject: [PATCH] Sending commands for half identification (1,2,3,4) --- mslrb2015/StateMachine.pde | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mslrb2015/StateMachine.pde b/mslrb2015/StateMachine.pde index a8bd261..2112a85 100644 --- a/mslrb2015/StateMachine.pde +++ b/mslrb2015/StateMachine.pde @@ -149,6 +149,13 @@ static class StateMachine { resetStartTime(true); nextGS = SwitchRunningStopped(); + switch(nextGS) + { + case GS_GAMEON_H1: send_to_basestation(COMM_FIRST_HALF + ""); break; + case GS_GAMEON_H2: send_to_basestation(COMM_SECOND_HALF + ""); break; + case GS_GAMEON_H3: send_to_basestation(COMM_FIRST_HALF_OVERTIME + ""); break; + case GS_GAMEON_H4: send_to_basestation(COMM_SECOND_HALF_OVERTIME + ""); break; + } } else if(btnCurrent == ButtonsEnum.BTN_STOP) {