diff --git a/components/cc1101/cc1101.c b/components/cc1101/cc1101.c index 9fa43d4..1eb7de4 100644 --- a/components/cc1101/cc1101.c +++ b/components/cc1101/cc1101.c @@ -139,7 +139,7 @@ void cc_enter_idle_mode(void) { void cc_enter_rx_mode(void) { while ( CC_STATE( cc_strobe( CC_SIDLE ) ) != CC_STATE_IDLE ){} - cc_write( CC_IOCFG0, 0x2E ); // GDO0 not needed + cc_write( CC_IOCFG0, 0x09 ); // Show Clear Channel Assessment cc_write( CC_PKTCTRL0, 0x32 ); // Asynchronous, infinite packet cc_strobe( CC_SFRX ); diff --git a/components/cc1101/cc1101_param.c b/components/cc1101/cc1101_param.c index 4b8540f..e3e9be4 100644 --- a/components/cc1101/cc1101_param.c +++ b/components/cc1101/cc1101_param.c @@ -37,7 +37,7 @@ static inline uint8_t cc1101_cfg_default( uint8_t *cfg ) { 0xF8, // CC_MDMCFG0 Channel spacing 199.951 KHz 0x50, // CC_DEVIATN 0x07, // CC_MCSM2 default - 0x30, // CC_MCSM1 default + 0x10, // CC_MCSM1 CCA if RSSI below threshold 0x18, // CC_MCSM0 Auto-calibrate on Idle to RX+TX, Power on timeout 149-155 uS 0x16, // CC_FOCCFG default 0x6c, // CC_BSCFG default