mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-03 13:20:16 -05:00
Announce and validation
This commit is contained in:
parent
3ea36ff9b3
commit
82744fb9ed
6 changed files with 125 additions and 35 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue