Min/max recordings added to serial pub message

This commit is contained in:
Martin Jaeger
2019-04-17 08:18:44 +02:00
parent 73a205f60f
commit 666ca02baf
4 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ bool pwm_switch_enabled()
}
float pwm_switch_get_duty_cycle() {
return (float)(TIM3->CCR4) / (_pwm_resolution);;
// TODO: check why we might get > 100
return (float)(TIM3->CCR4) / (_pwm_resolution);
}
void pwm_switch_start(float pwm_duty)