Index: leahi_dialin/td/modules/buttons.py =================================================================== diff -u -r18c90a1b2b6c7339bdd192a2d2fac32f2b8a35df -r20c821bd230fc7689a0275a2918981669ff5cc19 --- leahi_dialin/td/modules/buttons.py (.../buttons.py) (revision 18c90a1b2b6c7339bdd192a2d2fac32f2b8a35df) +++ leahi_dialin/td/modules/buttons.py (.../buttons.py) (revision 20c821bd230fc7689a0275a2918981669ff5cc19) @@ -39,16 +39,17 @@ super().__init__() self.can_interface = can_interface self.logger = logger - self.poweroff_timeout_expired = False if self.can_interface is not None: self.msg_id_off_button_press_request = MsgIds.MSG_ID_OFF_BUTTON_PRESS_REQUEST.value self.can_interface.register_receiving_publication_function(DenaliChannels.td_to_ui_ch_id, self.msg_id_off_button_press_request, self._handler_poweroff_timeout_occurred) - self.td_power_off_timestamp = 0.0 + self.td_power_off_timestamp = 0.0 #: The timestamp of the last message + self.poweroff_timeout_expired = False #: The Power Off timeout value + def reset_poweroff_timeout_expired(self): """ Resets the dialin poweroff timeout flag to False