From 01301a1485a3ef6291584b9b0c21253defd25496 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sat, 28 Aug 2021 20:21:20 -0500 Subject: [PATCH] Change BLE TPMS count to match associated number (#1070) 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 b6b0810..69b7797 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));