Skip to content

Commit

Permalink
Fix Nissan TPMS pressure_PSI key (#2915)
Browse files Browse the repository at this point in the history
* The pressure unit should be pressure_PSI, not pressure_psi
  • Loading branch information
gson1703 committed May 2, 2024
1 parent 376ca51 commit 28a846f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/tpms_nissan.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static int tpms_nissan_decode(r_device *decoder, bitbuffer_t *bitbuffer, unsigne
"type", "", DATA_STRING, "TPMS",
"id", "", DATA_STRING, id_str,
"mode", "", DATA_INT, mode,
"pressure_psi", "Pressure", DATA_FORMAT, "%.1f PSI", DATA_DOUBLE, pressure_psi,
"pressure_PSI", "Pressure", DATA_FORMAT, "%.1f PSI", DATA_DOUBLE, pressure_psi,
"unknown", "", DATA_INT, unknown,
NULL);
/* clang-format on */
Expand Down Expand Up @@ -98,7 +98,7 @@ static char const *const output_fields[] = {
"type",
"id",
"mode",
"pressure_psi",
"pressure_PSI",
"unknown",
NULL,
};
Expand Down

0 comments on commit 28a846f

Please sign in to comment.