From 59d5af7f45ac4a74cc8f620fa295202bdc02d1b5 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 8 Dec 2023 08:49:07 +0100 Subject: [PATCH] tests/drivers/at: add static variable initializer --- tests/drivers/at/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/drivers/at/main.c b/tests/drivers/at/main.c index 35feb2359a4f..46a7f22eeaac 100644 --- a/tests/drivers/at/main.c +++ b/tests/drivers/at/main.c @@ -35,8 +35,8 @@ static at_dev_t at_dev; static char buf[256]; static char resp[1024]; static char rp_buf[256]; -static bool initialized; -static bool is_power_on; +static bool initialized = false; +static bool is_power_on = false; static int init(int argc, char **argv) { @@ -490,9 +490,6 @@ int main(void) { puts("AT command test app"); - initialized = false; - is_power_on = false; - /* run the shell */ char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);