From 961d61807c04c0cea73f98d715387424490021e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Wed, 23 Jun 2021 19:41:05 +0300 Subject: [PATCH] [FL-1478] Fix setting PA0 high confirmation dialog #533 --- applications/cli/cli_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/cli/cli_commands.c b/applications/cli/cli_commands.c index 049e706e..0423ee5b 100644 --- a/applications/cli/cli_commands.c +++ b/applications/cli/cli_commands.c @@ -256,7 +256,7 @@ void cli_command_gpio_set(Cli* cli, string_t args, void* context) { printf( "Setting PA0 pin HIGH with TSOP connected can damage IR receiver. Are you sure you want to continue? (y/n)?\r\n"); char c = cli_getc(cli); - if(c != 'y' || c != 'Y') { + if(c != 'y' && c != 'Y') { printf("Cancelled.\r\n"); return; }