This commit is contained in:
Max 2021-09-22 14:13:06 +01:00
parent 7c6088bcc8
commit 2e7e9ee6b8

View File

@ -33,8 +33,8 @@ class Proximity:
def get_prox_readings(self): def get_prox_readings(self):
try: try:
# self.ser.flushInput() self.ser.flushInput()
time.sleep(0.05) time.sleep(0.1)
p1 = p2 = p3 = p4 = p5 = p6 = p7 = p8 = p9 = p10 = p11 = 0 p1 = p2 = p3 = p4 = p5 = p6 = p7 = p8 = p9 = p10 = p11 = 0
for _ in range(1): for _ in range(1):
raw = str(self.ser.readline()) raw = str(self.ser.readline())