diff --git a/Display.cpp b/Display.cpp index ecb4216..d581149 100644 --- a/Display.cpp +++ b/Display.cpp @@ -216,4 +216,4 @@ uint8_t Display::countNonBlankRows() { } return count; } - \ No newline at end of file + diff --git a/MotorDriver.h b/MotorDriver.h index 77b2ec8..990fd71 100644 --- a/MotorDriver.h +++ b/MotorDriver.h @@ -182,7 +182,9 @@ class MotorDriver { isProgTrack = on; } void checkPowerOverload(bool useProgLimit, byte trackno); - void setTrackLetter(char c); + inline void setTrackLetter(char c) { + trackLetter = c; + }; #ifdef ANALOG_READ_INTERRUPT bool sampleCurrentFromHW(); void startCurrentFromHW(); diff --git a/TrackManager.cpp b/TrackManager.cpp index 633ed06..fcd0c10 100644 --- a/TrackManager.cpp +++ b/TrackManager.cpp @@ -129,6 +129,7 @@ void TrackManager::addTrack(byte t, MotorDriver* driver) { track[t]=driver; if (driver) { track[t]->setPower(POWERMODE::OFF); + track[t]->setTrackLetter('A'+t); lastTrack=t; } }