From c5e225656db6c3bf3062b34ba5607e63689813ba Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 9 Feb 2023 23:25:00 +0300 Subject: [PATCH] Throw in some copy pastas temp solution, maybe not temp, maybe its forever --- .../scenes/subghz_scene_ext_module_settings.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/applications/main/subghz/scenes/subghz_scene_ext_module_settings.c b/applications/main/subghz/scenes/subghz_scene_ext_module_settings.c index ccfc2a37e..3242bafdc 100644 --- a/applications/main/subghz/scenes/subghz_scene_ext_module_settings.c +++ b/applications/main/subghz/scenes/subghz_scene_ext_module_settings.c @@ -37,9 +37,18 @@ static void subghz_scene_receiver_config_set_debug_pin(VariableItem* item) { if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) { if(value_index2 == 1) { furi_hal_subghz_set_async_mirror_pin(&gpio_ext_pa7); - furi_hal_subghz_start_debug(); + if(furi_hal_subghz.async_mirror_pin != NULL) { + furi_hal_gpio_init( + furi_hal_subghz.async_mirror_pin, + GpioModeOutputPushPull, + GpioPullNo, + GpioSpeedVeryHigh); + } } else { - furi_hal_subghz_stop_debug(); + if(furi_hal_subghz.async_mirror_pin != NULL) { + furi_hal_gpio_init( + furi_hal_subghz.async_mirror_pin, GpioModeAnalog, GpioPullNo, GpioSpeedLow); + } furi_hal_subghz_set_async_mirror_pin(NULL); } }