Skip to content
Snippets Groups Projects
Commit fc4a8ebb authored by Daniel Agar's avatar Daniel Agar Committed by Beat Küng
Browse files

ulanding fix sign-compare

parent 5fedab75
No related branches found
No related tags found
No related merge requests found
......@@ -328,7 +328,7 @@ bool Radar::read_and_parse(uint8_t *buf, int len, float *range)
bool ret = false;
// write new data into a ring buffer
for (unsigned i = 0; i < len; i++) {
for (int i = 0; i < len; i++) {
_head++;
......@@ -357,7 +357,7 @@ bool Radar::read_and_parse(uint8_t *buf, int len, float *range)
// go through the buffer backwards starting from the newest byte
// if we find a header byte and the previous two bytes weren't header bytes
// then we found the newest package.
for (unsigned i = 0; i < num_bytes; i++) {
for (int i = 0; i < num_bytes; i++) {
if (is_header_byte(_buf[index])) {
if (no_header_counter >= BUF_LEN / 3 - 1) {
if (ULANDING_VERSION == 1) {
......
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