From 92f15283c16632ab7dde2025594eb0c3e5e321d0 Mon Sep 17 00:00:00 2001 From: Jake Dahl Date: Fri, 4 May 2018 09:11:19 -0600 Subject: [PATCH] changed int to float --- src/modules/commander/PreflightCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/PreflightCheck.cpp b/src/modules/commander/PreflightCheck.cpp index ec4d7f73aa..503feacb2f 100644 --- a/src/modules/commander/PreflightCheck.cpp +++ b/src/modules/commander/PreflightCheck.cpp @@ -490,7 +490,7 @@ static bool powerCheck(orb_advert_t *mavlink_log_pub, bool report_fail, bool pre if (hrt_elapsed_time(&system_power.timestamp) < 200000) { /* copy avionics voltage */ - int avionics_power_rail_voltage = system_power.voltage5V_v; + float avionics_power_rail_voltage = system_power.voltage5V_v; // avionics rail // Check avionics rail voltages