Skip to content
Snippets Groups Projects
Commit d2c94921 authored by fortissBot's avatar fortissBot
Browse files

LRF: filtered value 1061

refs 7956
parent a49347dc
No related branches found
No related tags found
No related merge requests found
......@@ -88,14 +88,18 @@ GEN_TYPE_int lrf_read() {
}
} else {
d = atoi(value);
if (d != 0) {
printf("%d\n", d);
timeout = 0;
return d;
} else {
if (d == 0) {
timeout++;
printf("-1: zero value\n");
return -1;
} else if(d == 1061) { //strange behaviour of one lrf
printf("-1: 1061\n");
return -1;
}
else {
printf("%d\n", d);
timeout = 0;
return d;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment