From 092d2438d817483c565ee8ae66c9e19539a48649 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 5 Jul 2019 19:05:07 -0400 Subject: [PATCH] refactoring --- firmware/config/boards/prometheus/board_configuration.cpp | 2 +- firmware/global.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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" {