From 092e819aa1704e42c7b671d637fd0a1af88f7dbf Mon Sep 17 00:00:00 2001 From: mchilli Date: Wed, 9 Oct 2024 12:03:26 +0200 Subject: [PATCH] added version for version check --- circuitpython/code.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/circuitpython/code.py b/circuitpython/code.py index 97628ed..e424711 100644 --- a/circuitpython/code.py +++ b/circuitpython/code.py @@ -22,6 +22,7 @@ supervisor.runtime.autoreload = False +VERSION = "1.3.0" # The file in which the settings are saved SETTINGSFILE = "settings.json" # The file in which the macros are saved @@ -456,6 +457,8 @@ def start(self) -> None: if self.serial_last_state != self.serial_data.connected: self.serial_last_state = self.serial_data.connected if self.serial_data.connected: + self._send_serial_data( + {'ACK': 'version', 'CONTENT': VERSION}) self._send_serial_data( {'ACK': 'usbenabled', 'CONTENT': self.readonly})