From 6626a542413463a868ad88987ef839ad4ba108b0 Mon Sep 17 00:00:00 2001 From: Robbe Date: Fri, 15 Nov 2019 21:01:46 -0800 Subject: [PATCH] Fixed python health api --- python/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/__init__.py b/python/__init__.py index 57869f91bc58eb..b440cd8acdf879 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -345,8 +345,8 @@ def call_control_api(self, msg): # ******************* health ******************* def health(self): - dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 27) - a = struct.unpack("IIIIIBBBBBBB", dat) + dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 28) + a = struct.unpack("IIIIIBBBBBBBB", dat) return { "voltage": a[0], "current": a[1], @@ -359,7 +359,8 @@ def health(self): "gas_interceptor_detected": a[8], "car_harness_status": a[9], "usb_power_mode": a[10], - "safety_mode": a[11] + "safety_mode": a[11], + "fault_status": a[12] } # ******************* control *******************