diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 6366ea9bd0..f0fbd7df92 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -1122,7 +1122,7 @@ void sys_poweroff(void) #if (defined(IAUDIO_X5) || defined(IAUDIO_M5)) && !defined (SIMULATOR) pcf50606_reset_timeout(); /* Reset timer on first attempt only */ #endif -#ifdef HAVE_RECORDING +#if defined(HAVE_RECORDING) && !defined(BOOTLOADER) if (audio_status() & AUDIO_STATUS_RECORD) shutdown_timeout += HZ*8; #endif