Merge branch 'master' of github.com:markqvist/Reticulum
This commit is contained in:
commit
8c936af963
@ -1494,7 +1494,7 @@ def main():
|
|||||||
selected_product = None
|
selected_product = None
|
||||||
try:
|
try:
|
||||||
c_dev = int(input())
|
c_dev = int(input())
|
||||||
if c_dev < 1 or c_dev > 6:
|
if c_dev < 1 or c_dev > 7:
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
elif c_dev == 1:
|
elif c_dev == 1:
|
||||||
selected_product = ROM.PRODUCT_RNODE
|
selected_product = ROM.PRODUCT_RNODE
|
||||||
|
@ -105,7 +105,7 @@ def timestamp_str(time_s):
|
|||||||
|
|
||||||
def log(msg, level=3, _override_destination = False):
|
def log(msg, level=3, _override_destination = False):
|
||||||
global _always_override_destination, compact_log_fmt
|
global _always_override_destination, compact_log_fmt
|
||||||
|
msg = str(msg)
|
||||||
if loglevel >= level:
|
if loglevel >= level:
|
||||||
if not compact_log_fmt:
|
if not compact_log_fmt:
|
||||||
logstring = "["+timestamp_str(time.time())+"] ["+loglevelname(level)+"] "+msg
|
logstring = "["+timestamp_str(time.time())+"] ["+loglevelname(level)+"] "+msg
|
||||||
@ -238,4 +238,4 @@ def panic():
|
|||||||
|
|
||||||
def exit():
|
def exit():
|
||||||
print("")
|
print("")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user