From d1bcd09a7c4f6f53cc57387028810a5b2dddd3dd Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 23 Jan 2023 22:42:13 +0100 Subject: [PATCH] Restore TPMS2 OOK setting, modified for error. --- app_subghz.c | 2 +- custom_presets.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app_subghz.c b/app_subghz.c index 71e1aef9fee..d9dd0e0d7ef 100644 --- a/app_subghz.c +++ b/app_subghz.c @@ -59,7 +59,7 @@ void radio_begin(ProtoViewApp* app) { /* We avoid the subghz provided abstractions and put the data in our * simple abstraction: the RawSamples circular buffer. */ -void protoview_rx_callback(bool level, uint32_t duration, void* context) { +void protoview_rx_callback(bool level, uint32_t duration, void *context) { UNUSED(context); /* Add data to the circular buffer. */ raw_samples_add(RawSamples, level, duration); diff --git a/custom_presets.h b/custom_presets.h index cb9a421c6d4..19184593330 100644 --- a/custom_presets.h +++ b/custom_presets.h @@ -128,8 +128,8 @@ static const uint8_t protoview_subghz_tpms2_ook_async_regs[][2] = { {CC1101_MDMCFG0, 0x00}, // Channel spacing is 25kHz {CC1101_MDMCFG1, 0x00}, // Channel spacing is 25kHz {CC1101_MDMCFG2, 0x30}, // Format ASK/OOK, No preamble/sync - {CC1101_MDMCFG3, /*0x93*/ 0x32}, // Data rate is 10kBaud - {CC1101_MDMCFG4, /*0x18*/ 0x17}, // Rx BW filter is 650.000kHz + {CC1101_MDMCFG3, 0x93}, // Data rate is 10kBaud + {CC1101_MDMCFG4, 0x18}, // Rx BW filter is 650.000kHz /* Main Radio Control State Machine */ {CC1101_MCSM0, 0x18}, // Autocalibrate on idle-to-rx/tx, PO_TIMEOUT is 64 cycles(149-155us)