1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00
still requires pin jiggling
This commit is contained in:
Asbelos
2022-02-23 16:21:45 +00:00
parent 1afb4753ec
commit 74bbe595fc
4 changed files with 9 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
#include "IODevice.h"
#include "EXRAIL2.h"
#include "CommandDistributor.h"
#include "TrackManager.h"
// This module is responsible for converting API calls into
// messages to be sent to the waveform generator.
@@ -78,6 +79,7 @@ void DCC::begin(const FSH * motorShieldName) {
void DCC::setThrottle( uint16_t cab, uint8_t tSpeed, bool tDirection) {
byte speedCode = (tSpeed & 0x7F) + tDirection * 128;
setThrottle2(cab, speedCode);
TrackManager::setDCSignal(cab,speedCode); // in case this is a dcc track on this addr
// retain speed for loco reminders
updateLocoReminder(cab, speedCode );
}