This commit is contained in:
MX 2024-04-05 06:42:05 +03:00
parent 7787845479
commit 22cf19dcef
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -181,7 +181,7 @@ static bool subghz_device_cc1101_ext_check_init(void) {
} }
furi_hal_gpio_init( furi_hal_gpio_init(
subghz_device_cc1101_ext->g0_pin, GpioModeAnalog, GpioPullNo, GpioSpeedLow); subghz_device_cc1101_ext->g0_pin, GpioModeAnalog, GpioPullNo, GpioSpeedLow);
// Reset GDO2 (!TX/RX) to floating state // Reset GDO2 (!TX/RX) to floating state
cc1101_status = cc1101_write_reg( cc1101_status = cc1101_write_reg(
subghz_device_cc1101_ext->spi_bus_handle, CC1101_IOCFG2, CC1101IocfgHighImpedance); subghz_device_cc1101_ext->spi_bus_handle, CC1101_IOCFG2, CC1101IocfgHighImpedance);
@ -189,7 +189,7 @@ static bool subghz_device_cc1101_ext_check_init(void) {
//timeout or error //timeout or error
break; break;
} }
// Go to sleep // Go to sleep
cc1101_status = cc1101_shutdown(subghz_device_cc1101_ext->spi_bus_handle); cc1101_status = cc1101_shutdown(subghz_device_cc1101_ext->spi_bus_handle);
if(cc1101_status.CHIP_RDYn != 0) { if(cc1101_status.CHIP_RDYn != 0) {