systemcmds: Warning fixes

This commit is contained in:
Lorenz Meier
2014-06-30 12:19:44 +02:00
parent 3f6851b987
commit ee8f4dcee6
6 changed files with 17 additions and 11 deletions
+2 -1
View File
@@ -515,7 +515,8 @@ pwm_main(int argc, char *argv[])
ret = poll(&fds, 1, 0);
if (ret > 0) {
int ret = read(0, &c, 1);
ret = read(0, &c, 1);
if (ret > 0) {
/* reset output to the last value */
for (unsigned i = 0; i < servo_count; i++) {