1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

D EEPROM command

This commit is contained in:
Harald Barth
2020-10-04 21:20:13 +02:00
parent 75d7547f11
commit 6dc4bcdb71
5 changed files with 14 additions and 16 deletions

View File

@@ -20,7 +20,7 @@
#include "DCC.h"
#include "DCCWaveform.h"
#include "DIAG.h"
#include "EEStore.h"
// This module is responsible for converting API calls into
// messages to be sent to the waveform generator.
@@ -45,6 +45,11 @@ __FlashStringHelper* DCC::shieldName=NULL;
void DCC::begin(const __FlashStringHelper* motorShieldName, MotorDriver * mainDriver, MotorDriver* progDriver, byte timerNumber) {
shieldName=(__FlashStringHelper*)motorShieldName;
// Load stuff from EEprom
(void)EEPROM; // tell compiler not to warn this is unused
EEStore::init();
DCCWaveform::begin(mainDriver,progDriver, timerNumber);
}