Retiming all the PWM's
This commit is contained in:
@@ -246,11 +246,7 @@ uint16_t getInputVoltageX10(uint16_t divisor, uint8_t sample) {
|
||||
}
|
||||
return sum * 4 / divisor;
|
||||
}
|
||||
bool tryBetterPWM(uint8_t pwm) {
|
||||
// We dont need this for the MHP30
|
||||
return false;
|
||||
}
|
||||
void setTipPWM(uint8_t pulse) {
|
||||
void setTipPWM(const uint8_t pulse, const bool shouldUseFastModePWM) {
|
||||
// We can just set the timer directly
|
||||
if (htim3.Instance->PSC > 20) {
|
||||
htim3.Instance->CCR1 = 0;
|
||||
|
||||
Reference in New Issue
Block a user