Index: dialin/ui/hd_simulator.py =================================================================== diff -u -r400926d021c357856375c533e8b0f985fa312b20 -r9691b4ccfd3732233addfb5820eb03d41c917bab --- dialin/ui/hd_simulator.py (.../hd_simulator.py) (revision 400926d021c357856375c533e8b0f985fa312b20) +++ dialin/ui/hd_simulator.py (.../hd_simulator.py) (revision 9691b4ccfd3732233addfb5820eb03d41c917bab) @@ -24,6 +24,7 @@ from typing import List from ..common.msg_defs import RequestRejectReasons, MsgIds import struct +from time import sleep YES=1 NO=0 @@ -187,8 +188,16 @@ @param message: the confirm treatment message @return: None """ - self.logger.debug("Received UI confirmation of Treatment Parameters. No FW response will be sent.") + self.logger.debug("Received UI confirmation of Treatment Parameters. ") + state = 0 + total_seconds = 100 + for seconds_remaining in range(total_seconds, -1, -1): + if seconds_remaining % (total_seconds // 3) == 0: + state += 1 + self.cmd_send_priming_time_remaining(state, seconds_remaining, total_seconds) + sleep(0.05) + def _handler_ui_start_treatment(self, message): """ Handler function to start a treatment