From 896a78c645b34b508da4d087312d83487e39271a Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sun, 12 Feb 2023 20:02:27 +0300 Subject: [PATCH] Use 17 (1W) pin for subghz debug mode --- .../main/subghz/scenes/subghz_scene_ext_module_settings.c | 2 +- applications/main/subghz/subghz_i.c | 4 ++-- 2 files changed, 3 insertions(+), 3 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 7d7a505cb..4627c57be 100644 --- a/applications/main/subghz/scenes/subghz_scene_ext_module_settings.c +++ b/applications/main/subghz/scenes/subghz_scene_ext_module_settings.c @@ -13,7 +13,7 @@ const char* const radio_modules_variables_text[] = { #define DEBUG_P_COUNT 2 const char* const debug_pin_text[DEBUG_P_COUNT] = { "OFF", - "A7", + "17(1W)", }; static void subghz_scene_ext_module_changed(VariableItem* item) { diff --git a/applications/main/subghz/subghz_i.c b/applications/main/subghz/subghz_i.c index 1fbe662ed..9f9a4be8f 100644 --- a/applications/main/subghz/subghz_i.c +++ b/applications/main/subghz/subghz_i.c @@ -598,7 +598,7 @@ void subghz_hopper_update(SubGhz* subghz) { void subghz_speaker_on(SubGhz* subghz) { if(subghz->txrx->debug_pin_state) { - furi_hal_subghz_set_async_mirror_pin(&gpio_ext_pa7); + furi_hal_subghz_set_async_mirror_pin(&ibutton_gpio); } if(subghz->txrx->speaker_state == SubGhzSpeakerStateEnable) { @@ -643,7 +643,7 @@ void subghz_speaker_mute(SubGhz* subghz) { void subghz_speaker_unmute(SubGhz* subghz) { if(subghz->txrx->debug_pin_state) { - furi_hal_subghz_set_async_mirror_pin(&gpio_ext_pa7); + furi_hal_subghz_set_async_mirror_pin(&ibutton_gpio); } if(subghz->txrx->speaker_state == SubGhzSpeakerStateEnable) { if(furi_hal_speaker_is_mine()) {