mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_RangeFilter: Fix equality comparison with extraneous parentheses
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
2577e5ff25
commit
32fa7e2c2a
@ -114,7 +114,7 @@ bool AP_RangeFinder_Benewake::get_reading(uint16_t &reading_cm, bool &signal_ok)
|
||||
uint16_t dist = ((uint16_t)linebuf[3] << 8) | linebuf[2];
|
||||
if (dist != 0xFFFF) {
|
||||
// TFmini has short distance mode (mm)
|
||||
if ((model_type == BENEWAKE_TFmini)) {
|
||||
if (model_type == BENEWAKE_TFmini) {
|
||||
if (linebuf[6] == 0x02) {
|
||||
dist *= 0.1f;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user