1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 15:46:14 +01:00

exchange pin number to track letter part 2

This commit is contained in:
Harald Barth 2023-03-20 21:22:48 +01:00
parent 21c99c8694
commit a75ca00e3c
3 changed files with 5 additions and 2 deletions

View File

@ -216,4 +216,4 @@ uint8_t Display::countNonBlankRows() {
}
return count;
}

View File

@ -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();

View File

@ -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;
}
}