This commit is contained in:
Max 2021-09-21 12:51:37 +01:00
parent cd146d22b3
commit eeb693432f

View File

@ -24,7 +24,7 @@ class PalletProximity:
self.ser.flushInput()
# time.sleep(0.05)
readings = 0
for _ in range(3):
for _ in range(2):
raw = str(self.ser.readline())
raw2 = int(raw.split("|")[1])
readings += raw2