 	double currentCurrent=0.0;
 	double totalCurrent=0.0;
 	long startTime = 0;
-	double resistorValue = 1.95; // tweak for better accuracy in startTest function
+	double resistorValue = 1.95;  //tweak for better accuracy in startTest function
 	long stopTime = -1;
 	double capacity = -1.0;
 	double totalWattHours = 0.0;

  checkFanState();
}

void setupAP()
{
  const char WiFiAPPSK[] = "12345678";
  WiFi.mode(WIFI_AP);
  const char *ssid = "BatteryTester";

unsigned long fanStopAt = 0;

void setup() {
  system_update_cpu_freq(160);	// 80 or 160
  system_phy_set_max_tpw(35); // 0 - 82 radio TX power
  pinMode(wifiLEDPin,OUTPUT);
  pinMode(fanPin,OUTPUT);
