mirror of https://github.com/ArduPilot/ardupilot
AP_Rangefinder: cleanup printf warnings
This commit is contained in:
parent
991ea6326d
commit
c40099a162
|
@ -207,7 +207,7 @@ bool AP_RangeFinder_PulsedLightLRF::init(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Found LidarLite device=0x%x v2=%d v3hp=%d\n", _dev->get_bus_id(), (int)v2_hardware, (int)v3hp_hardware);
|
printf("Found LidarLite device=0x%x v2=%d v3hp=%d\n", unsigned(_dev->get_bus_id()), (int)v2_hardware, (int)v3hp_hardware);
|
||||||
|
|
||||||
_dev->get_semaphore()->give();
|
_dev->get_semaphore()->give();
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,7 @@ bool AP_RangeFinder_VL53L0X::check_id(void)
|
||||||
v2 != 0xAA) {
|
v2 != 0xAA) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("Detected VL53L0X on bus 0x%x\n", dev->get_bus_id());
|
printf("Detected VL53L0X on bus 0x%x\n", unsigned(dev->get_bus_id()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ bool AP_RangeFinder_VL53L1X::check_id(void)
|
||||||
(v2 != 0xCC)) {
|
(v2 != 0xCC)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("Detected VL53L1X on bus 0x%x\n", dev->get_bus_id());
|
printf("Detected VL53L1X on bus 0x%x\n", unsigned(dev->get_bus_id()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue