mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Format
This commit is contained in:
@@ -182,7 +182,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);
|
||||||
@@ -190,7 +190,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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user