AP_Param: use %f not %.6f for param show

This commit is contained in:
Andrew Tridgell 2013-09-21 15:45:19 +10:00
parent 0d662c52b3
commit 16a7faa223
1 changed files with 1 additions and 1 deletions

View File

@ -1035,7 +1035,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()); port->printf_P(PSTR("%s: %ld\n"), s, (long)((AP_Int32 *)ap)->get());
break; break;
case AP_PARAM_FLOAT: case AP_PARAM_FLOAT:
port->printf_P(PSTR("%s: %.6f\n"), s, ((AP_Float *)ap)->get()); port->printf_P(PSTR("%s: %f\n"), s, ((AP_Float *)ap)->get());
break; break;
default: default:
break; break;