Index: leahi_dialin/td/modules/buttons.py =================================================================== diff -u -rafe332fec54d9d0432dfc0d54aef1debaa92b066 -r63d26c9e41e02f8a4c0ad59dab9cc6575e501357 --- leahi_dialin/td/modules/buttons.py (.../buttons.py) (revision afe332fec54d9d0432dfc0d54aef1debaa92b066) +++ leahi_dialin/td/modules/buttons.py (.../buttons.py) (revision 63d26c9e41e02f8a4c0ad59dab9cc6575e501357) @@ -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', 'td_power_off_timestamp', "poweroff_timeout_expired"]) def _handler_poweroff_timeout_occurred(self, message, timestamp=0.0): """ Poweroff timeout occurred handler