mirror of
https://github.com/meshtastic/python.git
synced 2026-04-18 13:57:00 -04:00
1.2.31 fix minor test bug
This commit is contained in:
@@ -31,7 +31,8 @@ def onReceive(packet, interface):
|
||||
|
||||
if p.decoded.portnum == "TEXT_MESSAGE_APP":
|
||||
# We only care a about clear text packets
|
||||
receivedPackets.append(p)
|
||||
if receivedPackets != None:
|
||||
receivedPackets.append(p)
|
||||
|
||||
|
||||
def onNode(node):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
from collections import defaultdict
|
||||
import serial
|
||||
import serial, traceback
|
||||
import serial.tools.list_ports
|
||||
from queue import Queue
|
||||
import threading, sys, time, logging
|
||||
@@ -87,3 +87,4 @@ class DeferredExecution():
|
||||
except:
|
||||
logging.error(
|
||||
f"Unexpected error in deferred execution {sys.exc_info()[0]}")
|
||||
print(traceback.format_exc())
|
||||
|
||||
Reference in New Issue
Block a user