Просмотр исходного кода

Restore TPMS2 OOK setting, modified for error.

antirez 3 лет назад
Родитель
Сommit
d1bcd09a7c
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      app_subghz.c
  2. 2 2
      custom_presets.h

+ 1 - 1
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);

+ 2 - 2
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)