1.2.31 fix minor test bug

This commit is contained in:
Kevin Hester committed 2021-05-03 10:38:06 +08:00
1 parent b787f46404
commit 356aa6dfdf
5 files changed
+14 -8

No files matched your search

+4 -2
View File
@@ -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">
+5 -3
View File
@@ -27,7 +27,7 @@
<span>Expand source code</span>
</summary>
<pre><code class="python">from collections import defaultdict
import serial
import serial, traceback
import serial.tools.list_ports
from queue import Queue
import threading, sys, time, logging
@@ -113,7 +113,8 @@ class DeferredExecution():
o()
except:
logging.error(
f&#34;Unexpected error in deferred execution {sys.exc_info()[0]}&#34;)</code></pre>
f&#34;Unexpected error in deferred execution {sys.exc_info()[0]}&#34;)
print(traceback.format_exc())</code></pre>
</details>
</section>
<section>
@@ -226,7 +227,8 @@ class DeferredExecution():
o()
except:
logging.error(
f&#34;Unexpected error in deferred execution {sys.exc_info()[0]}&#34;)</code></pre>
f&#34;Unexpected error in deferred execution {sys.exc_info()[0]}&#34;)
print(traceback.format_exc())</code></pre>
</details>
<h3>Methods</h3>
<dl>