Skip to content

Commit

Permalink
added version for version check
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilli committed Oct 9, 2024
1 parent 60b2cdb commit 092e819
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions circuitpython/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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})

Expand Down

0 comments on commit 092e819

Please sign in to comment.