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:
@@ -59,7 +59,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):
|
||||
@@ -271,7 +272,8 @@ def testSimulator():
|
||||
|
||||
if p.decoded.portnum == "TEXT_MESSAGE_APP":
|
||||
# We only care a about clear text packets
|
||||
receivedPackets.append(p)</code></pre>
|
||||
if receivedPackets != None:
|
||||
receivedPackets.append(p)</code></pre>
|
||||
</details>
|
||||
</dd>
|
||||
<dt id="meshtastic.test.openDebugLog"><code class="name flex">
|
||||
|
||||
Reference in New Issue
Block a user