Skip to content

Commit c35e4cb

Browse files
committed
source/c_pwm.c: disable pwm_set_polarity (broken in v4.9.x/v4.14.x)
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
1 parent 02c6ca5 commit c35e4cb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/c_pwm.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,12 @@ BBIO_err pwm_start(const char *key, float duty, float freq, int polarity)
581581
return BBIO_GEN;
582582
}
583583

584-
err = pwm_set_polarity(key, polarity);
585-
if (err != BBIO_OK) {
586-
syslog(LOG_ERR, "pwm_start: %s couldn't set polarity: %i", key, err);
587-
return err;
588-
}
584+
//FIXME: polarity set broken in v4.9.x/v4.14.x
585+
// err = pwm_set_polarity(key, polarity);
586+
// if (err != BBIO_OK) {
587+
// syslog(LOG_ERR, "pwm_start: %s couldn't set polarity: %i", key, err);
588+
// return err;
589+
// }
589590

590591
// Read out current period_ns from the file, in order for it to behave
591592
// properly

0 commit comments

Comments
 (0)