mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 05:11:24 +01:00
motordriver frequency diag
This commit is contained in:
parent
d4f0a7c8f3
commit
ab58c38e7b
@ -349,7 +349,7 @@ void MotorDriver::setDCSignal(byte speedcode, uint8_t frequency /*default =0*/)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
DIAG(F("Brake %d freqencybits %x"), brakePin, f);
|
||||
DIAG(F("Brake %d freqency %d"), brakePin, f);
|
||||
DCCTimer::DCCEXanalogWriteFrequency(brakePin, f); // set DC PWM frequency to 100Hz XXX May move to setup
|
||||
DCCTimer::DCCEXanalogWrite(brakePin,brake);
|
||||
#else // all AVR here
|
||||
@ -423,7 +423,7 @@ void MotorDriver::throttleInrush(bool on) {
|
||||
} else {
|
||||
pinMode(brakePin, OUTPUT);
|
||||
}
|
||||
#else
|
||||
#else // all AVR here
|
||||
if(on){
|
||||
DCCTimer::DCCEXanalogWriteFrequency(brakePin, 3);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user