Browse Source

PWM command: Do not use return value of read

sbg
Lorenz Meier 8 years ago
parent
commit
1adbf37cbe
  1. 2
      src/systemcmds/pwm/pwm.c

2
src/systemcmds/pwm/pwm.c

@ -656,7 +656,7 @@ pwm_main(int argc, char *argv[]) @@ -656,7 +656,7 @@ pwm_main(int argc, char *argv[])
if (ret > 0) {
read(0, &c, 1);
ret = read(0, &c, 1);
if (c == 0x03 || c == 0x63 || c == 'q') {
/* reset output to the last value */

Loading…
Cancel
Save