1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

Default to POWERMODE::OFF

This commit is contained in:
Asbelos 2020-08-23 14:17:54 +01:00
parent 6a986d2b0c
commit db31a2b355

View File

@ -33,13 +33,14 @@ void DCCWaveform::begin(MotorDriver * mainDriver, MotorDriver * progDriver) {
mainTrack.motorDriver=mainDriver;
progTrack.motorDriver=progDriver;
mainTrack.setPowerMode(POWERMODE::OFF);
progTrack.setPowerMode(POWERMODE::OFF);
TimerA.initialize();
TimerA.setPeriod(58);
TimerA.setPeriod(58); // this is the 58uS DCC 1-bit waveform half-cycle
TimerA.attachInterrupt(interruptHandler);
TimerA.start();
mainTrack.setPowerMode(POWERMODE::ON);
progTrack.setPowerMode(POWERMODE::ON);
}
void DCCWaveform::loop() {