refactoring: inline method

This commit is contained in:
rusefillc 2022-10-21 21:16:37 -04:00
parent 7d769904e6
commit 50d8aa37b4
1 changed files with 3 additions and 7 deletions

View File

@ -211,12 +211,6 @@ static void adcConfigListener(Engine *engine) {
calcFastAdcIndexes();
}
static void turnOnHardware() {
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
turnOnTriggerInputPins();
#endif /* EFI_SHAFT_POSITION_INPUT */
}
void stopSpi(spi_device_e device) {
#if HAL_USE_SPI
if (!isSpiInitialized[device]) {
@ -559,7 +553,9 @@ void initHardware() {
// init_adc_mcp3208(&adcState, &SPID2);
// requestAdcValue(&adcState, 0);
turnOnHardware();
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
turnOnTriggerInputPins();
#endif /* EFI_SHAFT_POSITION_INPUT */
#if EFI_HIP_9011
initHip9011();