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

Make packetPending private and new access routine. Implement schedulePacket without packetPending variable for ESP32

This commit is contained in:
Harald Barth
2022-08-02 01:24:01 +02:00
parent 33c9155f6e
commit b09dba1213
3 changed files with 36 additions and 4 deletions

View File

@@ -587,7 +587,7 @@ void DCC::loop() {
void DCC::issueReminders() {
// if the main track transmitter still has a pending packet, skip this time around.
if ( DCCWaveform::mainTrack.packetPending) return;
if ( DCCWaveform::mainTrack.getPacketPending()) return;
// This loop searches for a loco in the speed table starting at nextLoco and cycling back around
for (int reg=0;reg<MAX_LOCOS;reg++) {