Update
This commit is contained in:
parent
cd146d22b3
commit
eeb693432f
@ -24,7 +24,7 @@ class PalletProximity:
|
|||||||
self.ser.flushInput()
|
self.ser.flushInput()
|
||||||
# time.sleep(0.05)
|
# time.sleep(0.05)
|
||||||
readings = 0
|
readings = 0
|
||||||
for _ in range(3):
|
for _ in range(2):
|
||||||
raw = str(self.ser.readline())
|
raw = str(self.ser.readline())
|
||||||
raw2 = int(raw.split("|")[1])
|
raw2 = int(raw.split("|")[1])
|
||||||
readings += raw2
|
readings += raw2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user