mirror of
https://github.com/meshtastic/python.git
synced 2025-12-28 18:37:52 -05:00
fix simpleN encodings
This commit is contained in:
@@ -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