Skip to content

Commit 28a846f

Browse files
authored
Fix Nissan TPMS pressure_PSI key (#2915)
* The pressure unit should be pressure_PSI, not pressure_psi
1 parent 376ca51 commit 28a846f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/devices/tpms_nissan.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int tpms_nissan_decode(r_device *decoder, bitbuffer_t *bitbuffer, unsigne
6262
"type", "", DATA_STRING, "TPMS",
6363
"id", "", DATA_STRING, id_str,
6464
"mode", "", DATA_INT, mode,
65-
"pressure_psi", "Pressure", DATA_FORMAT, "%.1f PSI", DATA_DOUBLE, pressure_psi,
65+
"pressure_PSI", "Pressure", DATA_FORMAT, "%.1f PSI", DATA_DOUBLE, pressure_psi,
6666
"unknown", "", DATA_INT, unknown,
6767
NULL);
6868
/* clang-format on */
@@ -98,7 +98,7 @@ static char const *const output_fields[] = {
9898
"type",
9999
"id",
100100
"mode",
101-
"pressure_psi",
101+
"pressure_PSI",
102102
"unknown",
103103
NULL,
104104
};

0 commit comments

Comments
 (0)