mirror of
https://github.com/meshtastic/python.git
synced 2026-09-15 23:13:06 -04:00
fix simpleN encodings
This commit is contained in:
1 parent
e610daad96
commit
c0ef73ab61
1 file changed
+1
-1
@@ -75,7 +75,7 @@ def fromPSK(valstr):
|
||||
elif valstr == "default":
|
||||
return bytes([1]) # Use default channel psk
|
||||
elif valstr.startswith("simple"):
|
||||
return bytes([int(valstr[6:])]) # Use one of the single byte encodings
|
||||
return bytes([int(valstr[6:]) + 1]) # Use one of the single byte encodings
|
||||
else:
|
||||
return fromStr(valstr)
|
||||
|
||||
|
||||
Reference in new issue
Block a user