From ebc7cc2daf3dd9738a74ba601c5f8a2c4b8a3f01 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 6 Jul 2024 08:59:12 +1000 Subject: [PATCH] AP_OpticalFlow: cleanup printf warnings --- libraries/AP_OpticalFlow/AP_OpticalFlow_PX4Flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4Flow.cpp b/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4Flow.cpp index 17380ed38a2..aaf876e59a1 100644 --- a/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4Flow.cpp +++ b/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4Flow.cpp @@ -78,7 +78,7 @@ bool AP_OpticalFlow_PX4Flow::scan_buses(void) struct i2c_integral_frame frame; success = tdev->read_registers(REG_INTEGRAL_FRAME, (uint8_t *)&frame, sizeof(frame)); if (success) { - printf("Found PX4Flow on bus %u\n", bus); + printf("Found PX4Flow on bus %u\n", unsigned(bus)); dev = std::move(tdev); break; }