PWM command: Do not use return value of read

This commit is contained in:
Lorenz Meier
2017-04-02 21:52:18 +02:00
parent dbd065a307
commit 1adbf37cbe
+1 -1
View File
@@ -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 */