mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-21 07:28:10 -07:00
Announce and validation
This commit is contained in:
@@ -58,3 +58,13 @@ def log(msg, level=3):
|
||||
file = open(logfile, "a")
|
||||
file.write(logstring+"\n")
|
||||
file.close()
|
||||
|
||||
def hexprint(data):
|
||||
print(hexrep(hexrep))
|
||||
|
||||
def hexrep(data, delimit=True):
|
||||
delimiter = ":"
|
||||
if not delimit:
|
||||
delimiter = ""
|
||||
hexrep = delimiter.join("{:02x}".format(ord(c)) for c in data)
|
||||
return hexrep
|
||||
Reference in New Issue
Block a user