 	wifiConnection.checkWiFi();
 }
 
-extern "C" void esp_schedule();
+extern "C" void esp_schedule();
 
 extern void delay_end(void* arg);
 


unsigned long lastButtonPressed = 0;
bool displayOn = true;
static unsigned int const PAUSE_POWERSAVE_IN_MS = 1000 * 120; //2 minutes
static unsigned int const PAUSE_ACTIVE_IN_MS = 500; // half a sec
static unsigned int const POWERSAVE_IN_MS = 20 * 1000; // 20 secs
static unsigned int pause_in_ms = PAUSE_ACTIVE_IN_MS;

static const unsigned int NUM_WIFI_FRAMES = 5;
static const uint8_t WIFI_FRAMES[NUM_WIFI_FRAMES][32] = {
	{
	0x00, 0x00, 0x0A, 0x60, 0x04, 0x60, 0x0A, 0x60, 0x00, 0x6C, 0x04, 0x6C,
	0x04, 0x60, 0x24, 0x64, 0x74, 0x6E, 0xE4, 0x67, 0xC4, 0x63, 0xC4, 0x63,
	0xE4, 0x67, 0x74, 0x6E, 0x24, 0x64, 0x00, 0x00,
	},
	{
	0x00, 0x00, 0x0A, 0x00, 0x04, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x04, 0x00,
	0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x34, 0x00, 0x34, 0x00,
	0x34, 0x00, 0x34, 0x00, 0x34, 0x00, 0x00, 0x00,
	},
	{
	0x00, 0x00, 0x0A, 0x00, 0x04, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x04, 0x00,
	0x04, 0x00, 0x84, 0x01, 0x84, 0x01, 0x84, 0x01, 0xB4, 0x01, 0xB4, 0x01,
	0xB4, 0x01, 0xB4, 0x01, 0xB4, 0x01, 0x00, 0x00,
	},
	{
	0x00, 0x00, 0x0A, 0x00, 0x04, 0x00, 0x0A, 0x00, 0x00, 0x0C, 0x04, 0x0C,
	0x04, 0x0C, 0x84, 0x0D, 0x84, 0x0D, 0x84, 0x0D, 0xB4, 0x0D, 0xB4, 0x0D,
	0xB4, 0x0D, 0xB4, 0x0D, 0xB4, 0x0D, 0x00, 0x00,
	},
	{
	0x00, 0x00, 0x0A, 0x60, 0x04, 0x60, 0x0A, 0x60, 0x00, 0x6C, 0x04, 0x6C,
	0x04, 0x6C, 0x84, 0x6D, 0x84, 0x6D, 0x84, 0x6D, 0xB4, 0x6D, 0xB4, 0x6D,
	0xB4, 0x6D, 0xB4, 0x6D, 0xB4, 0x6D, 0x00, 0x00, }
};

class WiFiConnection

	  http.end();
	*/
	lastButtonPressed += pause_in_ms; // a little false since we are doing other, stuff, but, meh
	if (lastButtonPressed >= POWERSAVE_IN_MS)
	{
		pause_in_ms = PAUSE_POWERSAVE_IN_MS;
		displayOn = false;
