1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

move ADCee begin as well

This commit is contained in:
Harald Barth 2023-06-22 23:30:28 +02:00
parent db555e8820
commit 99b6ca025a
2 changed files with 6 additions and 5 deletions

View File

@ -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();

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202306222055Z"
#define GITHUB_SHA "devel-202306222129Z"