From 21facd9cc34c64bcde07c975b150f97e1c6c9859 Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Sun, 15 Sep 2024 23:20:04 -0500 Subject: [PATCH] Options to select 314.9 or 315MHz TPMS freq (#2252) --- firmware/application/external/tpmsrx/tpms_app.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/firmware/application/external/tpmsrx/tpms_app.hpp b/firmware/application/external/tpmsrx/tpms_app.hpp index 12563749..8746711f 100644 --- a/firmware/application/external/tpmsrx/tpms_app.hpp +++ b/firmware/application/external/tpmsrx/tpms_app.hpp @@ -107,7 +107,7 @@ class TPMSAppView : public View { private: RxRadioState radio_state_{ - 314950000 /* frequency*/ + 314900000 /* frequency*/ , 1750000 /* bandwidth */, 2457600 /* sampling rate */ @@ -147,20 +147,21 @@ class TPMSAppView : public View { // "315 MHz" TPMS sensors transmit at either 314.9 or 315 MHz but we should pick up either OptionsField options_band{ {0 * 8, 0 * 16}, - 3, + 5, { - {"315", 314950000}, - {"434", 433920000}, + {"314.9", 314900000}, + {"315.0", 315000000}, + {"433.9", 433920000}, }}; OptionsField options_pressure{ - {5 * 8, 0 * 16}, + {6 * 8, 0 * 16}, 3, {{"kPa", 0}, {"PSI", 1}}}; OptionsField options_temperature{ - {9 * 8, 0 * 16}, + {10 * 8, 0 * 16}, 2, {{STR_DEGREES_C, 0}, {STR_DEGREES_F, 1}}};