   // get the time since the last measurement
   static long last_volts_time = -MeasureVoltageDelay;    // millis() value last time we measured
   long now_milli = millis();
+
   if (now_milli < last_volts_time)
     last_volts_time = -MeasureVoltageDelay;    // handle wraparound of millis()
 

  // measure voltage, we will get a value of 1023 for 3.3 volts
  // adjust the divider to calibrate
  // with my crappy multimeter:  (32.11/9.90)
  UINT measured = analogRead(mc_BattVolts);
  MeasuredVoltage = (3.3 * measured) / 1023 * 32.11/9.90;

  int percent = (int) ((MeasuredVoltage - MinVoltage) / (MaxVoltage - MinVoltage) * 100.0);


    if (batt_report_count > 0)
    {
      Serial.printf(F("battery under voltage\n"));
    }
#endif      
  }
