diff --git a/TrackManager.cpp b/TrackManager.cpp index ac44c76..4021240 100644 --- a/TrackManager.cpp +++ b/TrackManager.cpp @@ -532,15 +532,6 @@ void TrackManager::setTrackPower(POWERMODE powermode, byte t) { driver->setPower(powermode); } -void TrackManager::reportPowerChange(Print* stream, byte thistrack) { - // This function is for backward JMRI compatibility only - // It reports the first track only, as main, regardless of track settings. - // - int maxCurrent=track[0]->raw2mA(track[0]->getRawCurrentTripValue()); - StringFormatter::send(stream, F("\n"), - track[0]->raw2mA(track[0]->getCurrentRaw(false)), maxCurrent, maxCurrent); -} - // returns state of the one and only prog track POWERMODE TrackManager::getProgPower() { FOR_EACH_TRACK(t) diff --git a/TrackManager.h b/TrackManager.h index 12adb4e..dd38b72 100644 --- a/TrackManager.h +++ b/TrackManager.h @@ -88,7 +88,6 @@ class TrackManager { static void sampleCurrent(); static void reportGauges(Print* stream); static void reportCurrent(Print* stream); - static void reportPowerChange(Print* stream, byte thistrack); static void reportObsoleteCurrent(Print* stream); static void streamTrackState(Print* stream, byte t); static bool isPowerOn(byte t);