Fix regression on MC33810 units from af2815d818

This commit is contained in:
Josh Stewart 2023-12-22 15:06:35 +11:00
parent 7d817e3cde
commit 9acfacba5c
1 changed files with 1 additions and 1 deletions

View File

@ -2997,7 +2997,7 @@ void setPinMapping(byte boardID)
if( (ignitionOutputControl == OUTPUT_CONTROL_MC33810) || (injectorOutputControl == OUTPUT_CONTROL_MC33810) )
{
initMC33810();
pinMode(LED_BUILTIN, OUTPUT); //This is required on as the LED pin can otherwise be reset to an input
if( (LED_BUILTIN != SCK) && (LED_BUILTIN != MOSI) && (LED_BUILTIN != MISO) ) pinMode(LED_BUILTIN, OUTPUT); //This is required on as the LED pin can otherwise be reset to an input
}
//CS pin number is now set in a compile flag.