Skip to content

Commit

Permalink
A minor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihara committed May 3, 2023
1 parent 0a24932 commit 25b72ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/x1c3tool.nim
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ port.write("AT+VER=?" & CRLF)

# Expected version string is like:
# Ver: X1C3_2020_20201113 BH4TDV | ID: F628C58709A21E | V: 4.6 V| 25.8 C| 996.3 hpa
# It was reported that an older version writes the version number somewhat differently:
# Ver: 51X1C3_20180927A BH4TDV | CPU ID: F628465A00179D | Voltage: 4.6 V|

let
response = port.readAll()
Expand All @@ -68,7 +70,7 @@ doAssert(
"This device doesn't look like a X1C3."
)

doAssert(version.startswith("X1C3"), "This device is definitely not an X1C3.")
doAssert(version.startswith("X1C3") or version.startswith("51X1C3"), "This device is definitely not an X1C3.")

echo("X1C3 firmware version: ", version)

Expand Down
2 changes: 1 addition & 1 deletion x1c3tool.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.0.0"
version = "1.0.1"
author = "Eugene Medvedev (R2AZE)"
description = "A configuration loader and saver for X1C3 APRS Tracker."
license = "MIT"
Expand Down

0 comments on commit 25b72ea

Please sign in to comment.