mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 04:41:24 +01:00
exchange pin number to track letter part 2
This commit is contained in:
parent
21c99c8694
commit
a75ca00e3c
@ -216,4 +216,4 @@ uint8_t Display::countNonBlankRows() {
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user