diff --git a/rtc/ServoController/ServoSerial.h b/rtc/ServoController/ServoSerial.h index 98cef34190a..3105ad15476 100644 --- a/rtc/ServoController/ServoSerial.h +++ b/rtc/ServoController/ServoSerial.h @@ -361,7 +361,7 @@ class ServoSerial { timeout.tv_sec = 0; timeout.tv_usec = 200*1000; select(fd + 1, &set, NULL, NULL, &timeout); - ret2 = read(fd, &echo, 8+length*count); + ret2 = read(fd, echo, 8+length*count); fprintf(stderr, "[ServoSerial] received: ");