 void
 checkAndResetWifi(void)
 {
-	unsigned long gTimeNow;
-
-	wdt_reset();
-	if (!gCc3000.checkConnected() /* || (gCycles>5)*/)
+	wdt_reset();
+	if (!gCc3000.checkConnected() )
 	{
 		Serial.print(F("Time: "));
+#if 0
 		gTimeNow = millis();
 		//prints time since program started
 		Serial.println(gTimeNow);
+#endif
 		Serial.println(F("Lost WiFi. Rebooting CC3000"));
 		gCc3000.disconnect();
 		gCc3000.stop();
-		/*
-		gCc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS,
-			ADAFRUIT_CC3000_IRQ,
-			ADAFRUIT_CC3000_VBAT,
-			SPI_CLOCK_DIV2);
-		delay(20);
-		*/
 		wdt_reset();
 		gCc3000.reboot(0);
 		// setupCc3000() was rarely finishing before the watchdog bites, so let it

	unsigned int gConnectTimeout = 2000;
	unsigned long gTimeNow;

	//cycleLed(gLED);
	digitalWrite(gRedLED, HIGH);
	//Serial.println(F("postToweb"));
	gTimeNow = millis();
	do {
		Serial.println(F("->connectTCP"));

#define USE_CC3300 01
#define USE_DS2401 1
#define USE_DS18B20 1
#define USE_BME 1
#define MY_DEBUG 0

