From 9acfacba5c5842c086cbe13a165a9b1435e2500c Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Fri, 22 Dec 2023 15:06:35 +1100 Subject: [PATCH] Fix regression on MC33810 units from af2815d818668d45d7fc271c195c03f0d9c7582e --- speeduino/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/init.cpp b/speeduino/init.cpp index fe6430cffc..8ac90872ca 100644 --- a/speeduino/init.cpp +++ b/speeduino/init.cpp @@ -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.