Skip to content

Commit

Permalink
Restore TPMS2 OOK setting, modified for error.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jan 23, 2023
1 parent d1c86b3 commit d1bcd09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app_subghz.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions custom_presets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d1bcd09

Please sign in to comment.