 {
   if(gzllRunning){
     RFduinoGZLL.end();
-    gzllRunning = false;  
+    gzllRunning = false;
   }
 }
 

#include "OneButton.h"

device_t role = DEVICE0;

int gzllTimeout = 10000;



void onClickA()
{
  sendToHost(BUTTON_A_SINGLE);
  resetAndSleep();
}

void onClickB()
{
  sendToHost(BUTTON_B_SINGLE);
  resetAndSleep();
}

void onDoubleClickA()
{
  sendToHost(BUTTON_A_DOUBLE);
  resetAndSleep();
}

void onDoubleClickB()
{
  sendToHost(BUTTON_B_DOUBLE);
  resetAndSleep();
}

void onLongPressA()
{
  sendToHost(BUTTON_A_LONG);
  resetAndSleep();
}

void onLongPressB()
{
  sendToHost(BUTTON_B_LONG);
  resetAndSleep();
}

