From cf282e04bb36a2eaf9e107b8593632dd7d65fef0 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 28 Nov 2024 21:16:09 -0800 Subject: [PATCH] Update system.py --- modules/system.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/system.py b/modules/system.py index 97b7f69..f87b59a 100644 --- a/modules/system.py +++ b/modules/system.py @@ -614,6 +614,8 @@ def handleMultiPing(nodeID=0, deviceID=1): # divide buffer by start_count and get resolution resolution = maxBuffer // start_count slice = resolution * count + if slice > maxBuffer: + slice = maxBuffer # set the type as a portion of the buffer type = buffer[slice - resolution:]