   }
 
   s_count++;
-  delay(1000); // msec
-}
-
+
+  delay(591); // msec // for approximately 1 second loop
+}
+

#include "esp8266_160602_udpTxToLogger.h"

/*
 * v0.7 2016 Jun. 26
 *   - esp8266_160602_udpTxToLogger > increase connection retry from 3 to 6
 *   - esp8266_160602_udpTxToLogger > modify WiFi_setup() to avoid watchdog reset problem

  alt = calcAltitude(prs, kAltitudeCorrection);
  Serial.print(", Altitude=");
  Serial.print(alt);
#if 0 // for debug of loop() timing (1 second loop)
  int msec = millis() % 1000;
  Serial.print(",");
  Serial.print(msec);
#endif
  Serial.println();

}

void UdpTxAltitude(float prs)
