mirror of https://github.com/ArduPilot/ardupilot
AP_Param: compile warnings: float to double. print statements require doubles
This commit is contained in:
parent
330e4126bb
commit
b9771ca37c
|
@ -1094,7 +1094,7 @@ void AP_Param::show(const AP_Param *ap, const char *s,
|
|||
port->printf_P(PSTR("%s: %ld\n"), s, (long)((AP_Int32 *)ap)->get());
|
||||
break;
|
||||
case AP_PARAM_FLOAT:
|
||||
port->printf_P(PSTR("%s: %f\n"), s, ((AP_Float *)ap)->get());
|
||||
port->printf_P(PSTR("%s: %f\n"), s, (double)((AP_Float *)ap)->get());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue