From 1ebbd2c266ea1bb99c16a7f5ee5d36f5ed0bb2a4 Mon Sep 17 00:00:00 2001 From: gornekich <44112859+gornekich@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:07:59 +0300 Subject: [FL-942] remove 3s delays in reset, dfu and poweroff CLI commands (#362) --- applications/power/power.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'applications/power') diff --git a/applications/power/power.c b/applications/power/power.c index 0047c707..4480f6b1 100644 --- a/applications/power/power.c +++ b/applications/power/power.c @@ -144,21 +144,15 @@ void power_free(Power* power) { } void power_cli_poweroff(string_t args, void* context) { - printf("Poweroff in 3 seconds"); - osDelay(3000); api_hal_power_off(); } void power_cli_reset(string_t args, void* context) { - printf("NVIC System Reset in 3 seconds"); - osDelay(3000); NVIC_SystemReset(); } void power_cli_dfu(string_t args, void* context) { - printf("NVIC System Reset to DFU mode in 3 seconds"); api_hal_boot_set_mode(ApiHalBootModeDFU); - osDelay(3000); NVIC_SystemReset(); } -- cgit v1.2.3