mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
DataFlash: explicitly print floats to 6 dec places
C++ default is to print 6 decimal places but nuttx displays none by default
This commit is contained in:
parent
3f84e0adf6
commit
4b18c670e3
@ -316,7 +316,7 @@ void DataFlash_Class::_print_log_entry(uint8_t msg_type,
|
||||
case 'f': {
|
||||
float v;
|
||||
memcpy(&v, &pkt[ofs], sizeof(v));
|
||||
port->printf_P(PSTR("%f"), v);
|
||||
port->printf_P(PSTR("%.6f"), v);
|
||||
ofs += sizeof(v);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user