From 99b6ca025a9f841586131c35ea10c91853d860af Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Thu, 22 Jun 2023 23:30:28 +0200 Subject: [PATCH] move ADCee begin as well --- CommandStation-EX.ino | 9 +++++---- GITHUB_SHA.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index cbe55a3..24a0aef 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -77,7 +77,11 @@ void setup() // Initialise HAL layer before reading EEprom or setting up MotorDrivers IODevice::begin(); -// Set up MotorDrivers early to initialize all pins + + // As the setup of a motor shield may require a read of the current sense input from the ADC, + // let's make sure to initialise the ADCee class! + ADCee::begin(); + // Set up MotorDrivers early to initialize all pins TrackManager::Setup(MOTOR_SHIELD_TYPE); DISPLAY_START ( @@ -102,9 +106,6 @@ void setup() EthernetInterface::setup(); #endif // ETHERNET_ON - // As the setup of a motor shield may require a read of the current sense input from the ADC, - // let's make sure to initialise the ADCee class! - ADCee::begin(); // Responsibility 3: Start the DCC engine. DCC::begin(); diff --git a/GITHUB_SHA.h b/GITHUB_SHA.h index 549ccda..c495610 100644 --- a/GITHUB_SHA.h +++ b/GITHUB_SHA.h @@ -1 +1 @@ -#define GITHUB_SHA "devel-202306222055Z" +#define GITHUB_SHA "devel-202306222129Z"