From 0e7c6683d45658c45ddbaaeb2eb00a7332078706 Mon Sep 17 00:00:00 2001 From: Andy Lustig Date: Thu, 30 Oct 2025 10:22:57 -0500 Subject: [PATCH] fixes bug where board would disconnect if opening controls before starting task --- source/communication/pycboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/communication/pycboard.py b/source/communication/pycboard.py index 8e45056..bccfed6 100644 --- a/source/communication/pycboard.py +++ b/source/communication/pycboard.py @@ -421,6 +421,7 @@ def setup_state_machine(self, sm_name, sm_dir=None, uploaded=False): micropython_version=self.micropython_version, ) self.data_logger.reset() + self.timestamp = 0 def get_states(self): """Return states as a dictionary {state_name: state_ID}""" @@ -440,7 +441,6 @@ def start_framework(self, data_output=True): self.exec("fw.data_output = " + repr(data_output)) self.serial.reset_input_buffer() self.last_message_time = time.time() - self.timestamp = 0 self.exec_raw_no_follow("fw.run()") self.framework_running = True