code: def power_status_update(self, POWER_STATUS):
          '''update POWER_STATUS warnings level'''
          now = time.time()
          Vservo = POWER_STATUS.Vservo * 0.001
          Vcc = POWER_STATUS.Vcc * 0.001
          self.high_servo_voltage = max(self.high_servo_voltage, Vservo)
          if self.high_servo_voltage > 1 and Vservo < self.settings.servowarn:
              if now - self.last_servo_warn_time > 30:
                  self.last_servo_warn_time = now
                  self.say("Servo volt %.1f" % Vservo)
                  if Vservo < 1:
                      # prevent continuous announcements on power down
                      self.high_servo_voltage = Vservo
  
          if Vcc > 0 and Vcc < self.settings.vccwarn:
              if now - self.last_vcc_warn_time > 30:
                  self.last_vcc_warn_time = now
                  self.say("Vcc %.1f" % Vccf power_status_update(self, POWER_STATUS):
          '''update POWER_STATUS warnings level'''
          now = time.time()
          Vservo = POWER_STATUS.Vservo * 0.001
          Vcc = POWER_STATUS.Vcc * 0.001
          self.high_servo_voltage = max(self.high_servo_voltage, Vservo)
          if self.high_servo_voltage > 1 and Vservo < self.settings.servowarn:
              if now - self.last_servo_warn_time > 30:
                  self.last_servo_warn_time = now
                  self.say("Servo volt %.1f" % Vservo)
                  if Vservo < 1:
                      # prevent continuous announcements on power down
                      self.high_servo_voltage = Vservo
  
          if Vcc > 0 and Vcc < self.settings.vccwarn:
              if now - self.last_vcc_warn_time > 30:
                  self.last_vcc_warn_time = now
                  self.say("Vcc %.1f" % Vcc)
docs: update POWER_STATUS warnings level