1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 16:16:13 +01:00

Compare commits

..

No commits in common. "e4a3aa9f1e42afc248e75c88aba428d2c599c065" and "7b77d4ce1e9d679cf703da37ac91221a9f57e54b" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202404051830Z" #define GITHUB_SHA "devel-202404051206Z"

View File

@ -347,9 +347,9 @@ void MotorDriver::setDCSignal(byte speedcode, uint8_t frequency /*default =0*/)
} }
} }
#endif #endif
//DIAG(F("Brake pin %d value %d freqency %d"), brakePin, brake, f); //DIAG(F("Brake pin %d freqency %d"), brakePin, f);
DCCTimer::DCCEXanalogWrite(brakePin, brake, invertBrake);
DCCTimer::DCCEXanalogWriteFrequency(brakePin, f); // set DC PWM frequency DCCTimer::DCCEXanalogWriteFrequency(brakePin, f); // set DC PWM frequency
DCCTimer::DCCEXanalogWrite(brakePin, brake, invertBrake);
#else // all AVR here #else // all AVR here
DCCTimer::DCCEXanalogWriteFrequency(brakePin, frequency); // frequency steps DCCTimer::DCCEXanalogWriteFrequency(brakePin, frequency); // frequency steps
analogWrite(brakePin, invertBrake ? 255-brake : brake); analogWrite(brakePin, invertBrake ? 255-brake : brake);