1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Closing out #17 and #18, version upped to 0.2.4

This commit is contained in:
Robert Wolterman
2016-12-31 02:19:57 +00:00
parent 993ea29213
commit e82f62133a
4 changed files with 11 additions and 6 deletions

View File

@ -385,10 +385,8 @@ int pwm_start(const char *key, float duty, float freq, int polarity)
//rtnval = pwm_set_polarity(key, polarity);
//rtnval = 0;
rtnval = pwm_set_duty_cycle(key, duty);
rtnval = 0;
// TODO: SET RETURN BASED UPON 4 FUNCTIONS ABOVE
return 1;
return rtnval;
}
int pwm_disable(const char *key)
@ -403,7 +401,7 @@ int pwm_disable(const char *key)
// Disable the PWM
pwm_set_frequency(key, 0);
pwm_set_polarity(key, 0);
//pwm_set_polarity(key, 0);
pwm_set_duty_cycle(key, 0);
pwm_set_enable(key, DISABLE);