diff --git a/cereal b/cereal index 39cbdbfecf..3f8210d1fd 160000 --- a/cereal +++ b/cereal @@ -1 +1 @@ -Subproject commit 39cbdbfecf542104f71ecb16d2d1dfd7375dbf5b +Subproject commit 3f8210d1fd3a2090aa1eea9b1c60050859874f1b diff --git a/selfdrive/car/body/carstate.py b/selfdrive/car/body/carstate.py index 9d9e9b84c3..dbbd85950d 100644 --- a/selfdrive/car/body/carstate.py +++ b/selfdrive/car/body/carstate.py @@ -20,6 +20,7 @@ class CarState(CarStateBase): ret.steerFaultPermanent = any([cp.vl['VAR_VALUES']['MOTOR_ERR_L'], cp.vl['VAR_VALUES']['MOTOR_ERR_R'], cp.vl['VAR_VALUES']['FAULT']]) + ret.charging = cp.vl["BODY_DATA"]["CHARGER_CONNECTED"] == 1 ret.fuelGauge = cp.vl["BODY_DATA"]["BATT_PERCENTAGE"] / 100 # irrelevant for non-car diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 1dbcdfc7d6..c7cbe1da22 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -7057499e945105b919d7706b25ded4fe38b9884d \ No newline at end of file +7f1f4bd17965cc703b824ffb1870313bee93e2ec \ No newline at end of file