 #define MPL_ADDR (0x60)
 
 static const int kAltitudeCorrection = 0; // TODO: calibration
+static const int kAverageCount = 100;
 
 static float s_a0, s_b1, s_b2, s_c12; // 係数データ
 unsigned long iPress, iTemp;


/*
 * v0.4 2016 Jun. 2
 *   - PrintPressureAndAltitude() takes [prs] argument
 *   - add [esp8266_160602_calcAltitude.ino] 
 * v0.3 2016 Jun. 2

}

void loop() {
  double prs = 0.0;
  int cnt = 0;
  
  for(int loop=0; loop < kAverageCount; loop++) {
    if (ReadPressureAndTemperature()) {
      prs += calcPressure_hPa(iTemp, iPress);
      cnt++;
