diff --git a/org.fortiss.af3.platform.raspberry/trunk/lib/src/LaserRangeFinder.c b/org.fortiss.af3.platform.raspberry/trunk/lib/src/LaserRangeFinder.c index 2790bc867303ba0b7cb0d701dfcbaeb4bc0526fe..89bd8fb636edc159a813f2cccae10c7cf3cfba0b 100644 --- a/org.fortiss.af3.platform.raspberry/trunk/lib/src/LaserRangeFinder.c +++ b/org.fortiss.af3.platform.raspberry/trunk/lib/src/LaserRangeFinder.c @@ -35,7 +35,7 @@ GEN_TYPE_int lrf_read() { // free buffer uart_flush(); - char bytes[5]; + char bytes[6]; int n_read = 0; char value[3]; @@ -48,7 +48,7 @@ GEN_TYPE_int lrf_read() { // looks like a blocking call and actually is but is always very fast // since it only has to read the queue while (1) { - n_read = uart_receive(&bytes, 5, 0); + n_read = uart_receive(&bytes, 6, 0); for (i = 0; i < n_read; i++) { if (bytes[i] != 0xd && bytes[i] != 0xa) {