AP_Rangefinder: cleanup printf warnings

This commit is contained in:
Andrew Tridgell 2024-07-06 08:58:42 +10:00 committed by Peter Barker
parent 991ea6326d
commit c40099a162
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;
} }

View File

@ -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;
} }