From a42ed54f3858c2ac6d697f0202e6fb2dec2cc04f Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Thu, 5 Jun 2025 16:56:29 -0400 Subject: [PATCH] Added trouble detection --- vehicle.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vehicle.go b/vehicle.go index fab292d..dcc0fd1 100644 --- a/vehicle.go +++ b/vehicle.go @@ -700,7 +700,10 @@ func (v *Vehicle) GetVehicleHealth() { // v.client.logger.Debug("vehicle health item", "id", i, "item", vhi) if vhi.IsTrouble { if _, ok := troubles[vhi.FeatureCode]; ok { - // TODO: Added a troble to the trouble list + t := Trouble{ + Description: troubles[vhi.FeatureCode], + } + v.Troubles[vhi.FeatureCode] = t v.client.logger.Debug("found troubled vehicle health item", "id", i, "item", vhi.FeatureCode, "description", troubles[vhi.FeatureCode]) } }