From 93c182a269e6acb275319a867a8b5f1f503e34c7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 11 May 2019 10:46:17 -0400 Subject: [PATCH] Trigger: warning code on normal engine start up #669 --- firmware/hw_layer/hardware.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index fca4f5c1e8..1c661d8bc3 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -465,7 +465,9 @@ void initHardware(Logging *l) { #if HAL_USE_ADC initAdcInputs(isBoardTestMode_b); -#endif + // wait for first set of ADC values so that we do not produce invalid sensor data + waitForSlowAdc(1); +#endif /* HAL_USE_ADC */ #if EFI_BOARD_TEST if (isBoardTestMode_b) {