From 83c3659acc5dd625280af64fcecd71b6598ff7ef Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 8 Aug 2016 12:15:14 +0900 Subject: [PATCH] Copter: report version print fix Found by Covarity --- ArduCopter/setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/setup.cpp b/ArduCopter/setup.cpp index 3f43437006..faaae1d675 100644 --- a/ArduCopter/setup.cpp +++ b/ArduCopter/setup.cpp @@ -502,7 +502,7 @@ void Copter::print_enabled(bool b) void Copter::report_version() { - cliSerial->printf("FW Ver: %d\n",(int)g.k_format_version); + cliSerial->printf("FW Ver: %d\n",(int)(g.k_format_version)); print_divider(); print_blanks(2); }