mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 13:40:19 +00:00
Changing log levels
This commit is contained in:
parent
f7f34e0ea3
commit
3551662187
@ -1164,15 +1164,15 @@ def rnode_open_serial(port):
|
|||||||
|
|
||||||
def graceful_exit(C=0):
|
def graceful_exit(C=0):
|
||||||
if RNS.vendor.platformutils.is_windows():
|
if RNS.vendor.platformutils.is_windows():
|
||||||
RNS.log("Windows detected; delaying DTR")# ,RNS.LOG_VERBOSE
|
RNS.log("Windows detected; delaying DTR",RNS.LOG_VERBOSE)
|
||||||
if rnode:
|
if rnode:
|
||||||
RNS.log("Sending \"Leave\" to Rnode")
|
RNS.log("Sending \"Leave\" to Rnode",RNS.LOG_VERBOSE)
|
||||||
rnode.leave() # Leave has wait built in
|
rnode.leave() # Leave has wait built in
|
||||||
elif rnode_serial:
|
elif rnode_serial:
|
||||||
RNS.log("Closing raw serial")
|
RNS.log("Closing raw serial",RNS.LOG_VERBOSE)
|
||||||
sleep(1) # Wait for MCU to complete operation before DTR goes false
|
sleep(1) # Wait for MCU to complete operation before DTR goes false
|
||||||
rnode_serial.close()
|
rnode_serial.close()
|
||||||
RNS.log("Exiting: Code "+str(C))
|
RNS.log("Exiting: Code "+str(C),RNS.LOG_INFO)
|
||||||
exit(C)
|
exit(C)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user