Change BLE TPMS count to match associated number (#1070)

Currently this count start at 0 whereas it should start at 1
This commit is contained in:
Florian authored and GitHub committed 2021-08-28 20:21:20 -05:00
1 parent 66a76abaf2
commit 01301a1485
1 file changed
+1 -1
+1 -1
View File
@@ -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));