Update system.py

This commit is contained in:
SpudGunMan
2024-11-28 16:51:58 -08:00
parent aa5ef23363
commit d7d96a89cf

View File

@@ -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