nicer messages
This commit is contained in:
parent
0b0140db83
commit
22e78a97a5
|
@ -65,10 +65,10 @@ void SimplePwm::setSimplePwmDutyCycle(float dutyCycle) {
|
||||||
warning(CUSTOM_DUTY_INVALID, "%s spwd:dutyCycle %.2f", name, dutyCycle);
|
warning(CUSTOM_DUTY_INVALID, "%s spwd:dutyCycle %.2f", name, dutyCycle);
|
||||||
return;
|
return;
|
||||||
} else if (dutyCycle < 0) {
|
} else if (dutyCycle < 0) {
|
||||||
warning(CUSTOM_DUTY_TOO_LOW, "%s dutyCycle %.2f", name, dutyCycle);
|
warning(CUSTOM_DUTY_TOO_LOW, "%s dutyCycle too low %.2f", name, dutyCycle);
|
||||||
dutyCycle = 0;
|
dutyCycle = 0;
|
||||||
} else if (dutyCycle > 1) {
|
} else if (dutyCycle > 1) {
|
||||||
warning(CUSTOM_PWM_DUTY_TOO_HIGH, "%s duty %.2f", name, dutyCycle);
|
warning(CUSTOM_PWM_DUTY_TOO_HIGH, "%s duty too high %.2f", name, dutyCycle);
|
||||||
dutyCycle = 1;
|
dutyCycle = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue