From 472f07c760f9d81fee8bea20622bb7767ba3e647 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sat, 28 Aug 2021 18:17:15 -0500 Subject: [PATCH] Change TPMS count to match associated number Currently this count start at 0 whereas it should start at 1 --- main/ZgatewayBT.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ZgatewayBT.ino b/main/ZgatewayBT.ino index b6b08107ac..69b7797c8a 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -1770,7 +1770,7 @@ JsonObject& process_tpms(JsonObject& BLEdata) { int battery = (int)value_from_hex_data(manufacturerdata, 32, 2, true); int alarm = (int)value_from_hex_data(manufacturerdata, 35, 1, false); - BLEdata.set("count", (int)id); + BLEdata.set("count", (int)(id + 1)); BLEdata.set("pres", (double)pressure); BLEdata.set("tempc", (double)temperature); BLEdata.set("tempf", (double)convertTemp_CtoF(temperature));