diff --git a/firmware/config/boards/prometheus/board_configuration.cpp b/firmware/config/boards/prometheus/board_configuration.cpp index 522fee8ff4..c1595ff308 100644 --- a/firmware/config/boards/prometheus/board_configuration.cpp +++ b/firmware/config/boards/prometheus/board_configuration.cpp @@ -132,7 +132,7 @@ void setSdCardConfigurationOverrides(void) { void setBoardConfigurationOverrides(void) { // give a chance to trigger SWD programmer... Wait for 2 secs (=2000 ms). // TODO: remove it when the bootloader is ready - Delay(2000); + chThdSleepMilliseconds(2000); setSerialConfigurationOverrides(); diff --git a/firmware/global.h b/firmware/global.h index 13188b95ef..4d1fac56c2 100644 --- a/firmware/global.h +++ b/firmware/global.h @@ -125,7 +125,6 @@ typedef unsigned int time_t; */ #define NT2US(nt) ((nt) / US_TO_NT_MULTIPLIER) -#define Delay(ms) chThdSleepMilliseconds(ms) #ifdef __cplusplus extern "C" {