From d7d96a89cfaee7aca511db57112dbfa86874962c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 28 Nov 2024 16:51:58 -0800 Subject: [PATCH] Update system.py --- modules/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index 7ac561e..3f8ce51 100644 --- a/modules/system.py +++ b/modules/system.py @@ -611,8 +611,8 @@ def handleMultiPing(nodeID=0, deviceID=1): if type == 'πŸŽ™TEST': # use the type for a string of random data divided by MAXBUFFER and count for the length of the string type = ''.join(random.choice(['0', '1']) for i in range(int(maxBuffer / count))) - count = len(type + f"πŸ”‚ ") - if count < 99: + count = len(type + f"πŸ”‚ ") + if count > 99: # why? because the count likes to count count = count - 1