We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c7c7f8 + b35a679 commit aba8f42Copy full SHA for aba8f42
targets/TARGET_Cypress/TARGET_PSOC6/cy_pwmout_api.c
@@ -50,7 +50,7 @@ void pwmout_write(pwmout_t *obj, float percent)
50
51
float pwmout_read(pwmout_t *obj)
52
{
53
- return 100.0f * obj->width_us / obj->period_us;
+ return ((float)(obj->width_us) / obj->period_us);
54
}
55
56
void pwmout_period(pwmout_t *obj, float seconds)
0 commit comments