 
 void onClickA()
 {
-  sendToHost(0);
+  sendToHost(BUTTON_A_SINGLE);
   resetAndSleep();
 }
 
 void onClickB()
 {
-  sendToHost(1);
+  sendToHost(BUTTON_B_SINGLE);
   resetAndSleep();
 }
 
 void onDoubleClickA()
 {
-  sendToHost(2);
+  sendToHost(BUTTON_A_DOUBLE);
   resetAndSleep();
 }
 
 void onDoubleClickB()
 {
-  sendToHost(3);
+  sendToHost(BUTTON_B_DOUBLE);
   resetAndSleep();
 }
 
 void onLongPressA()
 {
-  sendToHost(4);
+  sendToHost(BUTTON_A_LONG);
   resetAndSleep();
 }
 
 void onLongPressB()
 {
-  sendToHost(5);
+  sendToHost(BUTTON_B_LONG);
   resetAndSleep();
 }
 

  if(gzllLastCommandTime != 0 && (millis() - gzllLastCommandTime) > gzllTimeout){
    stopGzll();
  }
  
  tick();
  
  if (shouldSleep) {
      // Hvis GZLL-stacken er paa, sov til timeout og sjekk s p nytt om stacken kan slaas av.
      if(gzllRunning) {

        RFduino_ULPDelay(INFINITE);
      }
  }

  delay(10); // Kan ikke kalle tick for ofte...
}

void RFduinoGZLL_onReceive(device_t device, int rssi, char *data, int len)
