first mc33810 SPI communication is not happy #6733

huh? stepper was not waiting? improving default parameter value, reusing new default parameter
This commit is contained in:
rusefi 2024-07-20 22:09:15 -04:00
parent 46962048e7
commit 0ec1f260c1
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ adc_channel_mode_e getAdcMode(adc_channel_e hwChannel);
void initAdcInputs();
// wait until at least 1 slowADC sampling is complete
void waitForSlowAdc(uint32_t lastAdcCounter = 0);
void waitForSlowAdc(uint32_t lastAdcCounter = 1);
void printFullAdcReportIfNeeded(void);
int getInternalAdcValue(const char *msg, adc_channel_e index);

View File

@ -591,7 +591,7 @@ void initHardware() {
initAdcInputs();
// wait for first set of ADC values so that we do not produce invalid sensor data
waitForSlowAdc(1);
waitForSlowAdc();
#endif /* HAL_USE_ADC */
#if EFI_SOFTWARE_KNOCK