mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-11 19:32:50 +02:00
enhance MaxBuffer Test
sets the lower limit to 150
This commit is contained in:
+3
-1
@@ -610,7 +610,9 @@ 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)))
|
||||
type = ''.join(random.choice(['0', '1']) for i in range(int((maxBuffer - 150 ) / count)))
|
||||
# add the 150 back into the string as random data, this was for finer resolution of the count on the upper limit
|
||||
type = type + ''.join(random.choice(['0', '1']) for i in range(150))
|
||||
count = len(type + "🔂 ")
|
||||
if count < 99:
|
||||
# why? because the count likes to count, and it counts the count
|
||||
|
||||
Reference in New Issue
Block a user