diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-11 00:28:14 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-11 00:28:14 +0200 |
commit | 73e9137865942b1c5970838ade92f9abb965f15d (patch) | |
tree | 14e3881f654105a80930d120e7009c8539c5bac2 /src/drivers/sf0x | |
parent | b925c5270e0ff2678ae868a6b2d06ffe7af91528 (diff) | |
download | px4-firmware-73e9137865942b1c5970838ade92f9abb965f15d.tar.gz px4-firmware-73e9137865942b1c5970838ade92f9abb965f15d.tar.bz2 px4-firmware-73e9137865942b1c5970838ade92f9abb965f15d.zip |
Fix unsigned comparison
Diffstat (limited to 'src/drivers/sf0x')
-rw-r--r-- | src/drivers/sf0x/sf0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/sf0x/sf0x.cpp b/src/drivers/sf0x/sf0x.cpp index 801bcf40a..fdd524189 100644 --- a/src/drivers/sf0x/sf0x.cpp +++ b/src/drivers/sf0x/sf0x.cpp @@ -546,7 +546,7 @@ SF0X::collect() float si_units; bool valid = false; - for (unsigned i = 0; i < ret; i++) { + for (int i = 0; i < ret; i++) { if (OK == sf0x_parser(readbuf[i], _linebuf, &_linebuf_index, &_parse_state, &si_units)) { valid = true; } |