1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Booster mode inrush throttle, too

This commit is contained in:
Harald Barth 2024-04-05 01:11:12 +02:00
parent 6d7d2325da
commit 84b90ae757

View File

@ -404,7 +404,7 @@ void MotorDriver::setDCSignal(byte speedcode, uint8_t frequency /*default =0*/)
void MotorDriver::throttleInrush(bool on) { void MotorDriver::throttleInrush(bool on) {
if (brakePin == UNUSED_PIN) if (brakePin == UNUSED_PIN)
return; return;
if ( !(trackMode & (TRACK_MODE_MAIN | TRACK_MODE_PROG | TRACK_MODE_EXT))) if ( !(trackMode & (TRACK_MODE_MAIN | TRACK_MODE_PROG | TRACK_MODE_EXT | TRACK_MODE_BOOST)))
return; return;
byte duty = on ? 207 : 0; // duty of 81% at 62500Hz this gives pauses of 3usec byte duty = on ? 207 : 0; // duty of 81% at 62500Hz this gives pauses of 3usec
if (invertBrake) if (invertBrake)