fix simpleN encodings

This commit is contained in:
Kevin Hester committed 2021-03-24 10:35:48 +08:00
1 parent e610daad96
commit c0ef73ab61
1 file changed
+1 -1
+1 -1
View File
@@ -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)