diff options
author | Julian Oes <julian@oes.ch> | 2013-10-11 10:16:45 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-10-11 10:16:45 +0200 |
commit | e2fef6b374e14f8c0f383557cf3569f8265ba034 (patch) | |
tree | ba3b5ccc58f86a9168d5ca1d1ff2e97cceb04153 /src/drivers/hil/hil.cpp | |
parent | b25b9d37d53d3caab7c7eb2eed6f5cdbdd3f8804 (diff) | |
download | px4-firmware-e2fef6b374e14f8c0f383557cf3569f8265ba034.tar.gz px4-firmware-e2fef6b374e14f8c0f383557cf3569f8265ba034.tar.bz2 px4-firmware-e2fef6b374e14f8c0f383557cf3569f8265ba034.zip |
Use unsigned for channel counts
Diffstat (limited to 'src/drivers/hil/hil.cpp')
-rw-r--r-- | src/drivers/hil/hil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/hil/hil.cpp b/src/drivers/hil/hil.cpp index 6563c3446..c1d73dd87 100644 --- a/src/drivers/hil/hil.cpp +++ b/src/drivers/hil/hil.cpp @@ -404,7 +404,7 @@ HIL::task_main() for (unsigned i = 0; i < num_outputs; i++) { /* last resort: catch NaN, INF and out-of-band errors */ - if (i < (unsigned)outputs.noutputs && + if (i < outputs.noutputs && isfinite(outputs.output[i]) && outputs.output[i] >= -1.0f && outputs.output[i] <= 1.0f) { |