 // nunchuk
 ArduinoNunchuk nunchuk = ArduinoNunchuk();
 bool nunchukControlMode = false;
+bool nunchukControlJustEntered = false;
+bool nunchukControlJustExited = false;
 
 void nunchukControlModeToggle(void) {
 	nunchukControlMode = !nunchukControlMode;
 	if (nunchukControlMode) {
 		sendMsgF(MSG_NCM_ON);
 		messageScrollSet("nunchuk control on");
+		nunchukControlJustEntered = true;
 	} else {
 		sendMsgF(MSG_NCM_OFF);
 		messageScrollSet("nunchuk control off");
+		nunchukControlJustExited = true;
 	}
 	messageScrollUpdate(true);
 }

		if (cycles == 0)
			messageScrollUpdate(true);
		cycles++;
		if (cycles == 120)
			cycles = 0;

		// if we are in the nunchuk control mode 
		if (nunchukControlMode)
			nunchukControlModeUpdate();
	}
}

bool suspendStore = false;
uint8_t cidx = 0;
uint8_t len = 0;
#define CYCLES_RESET_COUNT 120
uint8_t cycles = 0;

void loop() {
