Fix Nissan TPMS pressure_PSI key ()

* The pressure unit should be pressure_PSI, not pressure_psi
This commit is contained in:
gson1703 2024-05-02 20:13:01 +03:00 committed by GitHub
parent 376ca519ff
commit 28a846f152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 */
@ -98,7 +98,7 @@ static char const *const output_fields[] = {
"type",
"id",
"mode",
"pressure_psi",
"pressure_PSI",
"unknown",
NULL,
};