mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-07 05:45:11 +02:00
Go ham on radio clearing in manual mode
This commit is contained in:
+1
-2
@@ -461,9 +461,8 @@ async def drain_pending_messages(mc: MeshCore) -> int:
|
||||
Returns the count of messages retrieved.
|
||||
"""
|
||||
count = 0
|
||||
max_iterations = 100 # Safety limit
|
||||
|
||||
for _ in range(max_iterations):
|
||||
while True:
|
||||
try:
|
||||
result = await mc.commands.get_msg(timeout=2.0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user