From 8b3fac598dce934f63e6a39ebef6c82d223ec2ee Mon Sep 17 00:00:00 2001 From: "aditya.kumarpatnaik" Date: Thu, 30 Jan 2025 12:35:29 +0530 Subject: [PATCH] Line : 768 | Fixed type-cast error : Removed ord(), expects string --- python/raspberrypi/DFRobot_HumanDetection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/raspberrypi/DFRobot_HumanDetection.py b/python/raspberrypi/DFRobot_HumanDetection.py index 8edb077..4c62c2e 100644 --- a/python/raspberrypi/DFRobot_HumanDetection.py +++ b/python/raspberrypi/DFRobot_HumanDetection.py @@ -765,7 +765,7 @@ def _getData(self, con, cmd, length, senData): if self.ser.in_waiting > 0: data = self.ser.read(1)[0] - data = ord(data) + # data = ord(data) # Expects string and not int #print(data) #timeStart = time.time()