Index: leahi_dialin/td/modules/buttons.py =================================================================== diff -u -rafe332fec54d9d0432dfc0d54aef1debaa92b066 -rec8a2600b9e8cf6fe7e02c200a1c24221ca86863 --- leahi_dialin/td/modules/buttons.py (.../buttons.py) (revision afe332fec54d9d0432dfc0d54aef1debaa92b066) +++ leahi_dialin/td/modules/buttons.py (.../buttons.py) (revision ec8a2600b9e8cf6fe7e02c200a1c24221ca86863) @@ -41,8 +41,9 @@ 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, - MsgIds.MSG_ID_OFF_BUTTON_PRESS_REQUEST.value, + self.msg_id_off_button_press_request, self._handler_poweroff_timeout_occurred) self.td_power_off_timestamp = 0.0 @@ -55,7 +56,7 @@ self.poweroff_timeout_expired = False - @publish(['td_power_off_timestamp', "poweroff_timeout_expired"]) + @publish(['msg_id_off_button_press_request', 'poweroff_timeout_expired', 'td_power_off_timestamp']) def _handler_poweroff_timeout_occurred(self, message, timestamp=0.0): """ Poweroff timeout occurred handler