From 300302cb7c93a1b006d1c2cb0b60f926bd2d8def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Tue, 2 Nov 2021 02:49:48 +0300 Subject: [PATCH] Fix gpio debug (#802) --- applications/cli/cli_commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/cli/cli_commands.c b/applications/cli/cli_commands.c index e4053c4c..1a9f4a6d 100644 --- a/applications/cli/cli_commands.c +++ b/applications/cli/cli_commands.c @@ -350,7 +350,7 @@ void cli_command_gpio_set(Cli* cli, string_t args, void* context) { "PA4", "PA6", "PA7", -#ifdef DEBUG +#ifdef FURI_DEBUG "PA0", "PB7", "PB8", @@ -366,7 +366,7 @@ void cli_command_gpio_set(Cli* cli, string_t args, void* context) { {.port = GPIOA, .pin = LL_GPIO_PIN_4}, {.port = GPIOA, .pin = LL_GPIO_PIN_6}, {.port = GPIOA, .pin = LL_GPIO_PIN_7}, -#ifdef DEBUG +#ifdef FURI_DEBUG {.port = GPIOA, .pin = LL_GPIO_PIN_0}, // IR_RX (PA0) {.port = GPIOB, .pin = LL_GPIO_PIN_7}, // UART RX (PB7) {.port = GPIOB, .pin = LL_GPIO_PIN_8}, // SPEAKER (PB8) @@ -411,7 +411,7 @@ void cli_command_gpio_set(Cli* cli, string_t args, void* context) { LL_GPIO_SetPinOutputType(gpio[num].port, gpio[num].pin, LL_GPIO_OUTPUT_PUSHPULL); LL_GPIO_ResetOutputPin(gpio[num].port, gpio[num].pin); } else if(!string_cmp(args, "1")) { -#ifdef DEBUG +#ifdef FURI_DEBUG if(num == 8) { // PA0 printf( "Setting PA0 pin HIGH with TSOP connected can damage IR receiver. Are you sure you want to continue? (y/n)?\r\n");