mirror of https://github.com/ArduPilot/ardupilot
AP_Param: Use math header function names for type punning
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
parent
cf2b65877e
commit
33c1e23e55
|
@ -3019,7 +3019,7 @@ bool AP_Param::add_param(uint8_t _key, uint8_t param_num, const char *pname, flo
|
|||
|
||||
// check CRC
|
||||
const auto &hinfo = const_cast<GroupInfo*>(info.group_info)[0];
|
||||
const int32_t crc = to_int32(hinfo.def_value);
|
||||
const int32_t crc = float_to_int32_le(hinfo.def_value);
|
||||
|
||||
int32_t current_crc;
|
||||
if (load_int32(key, 0, current_crc) && current_crc != crc) {
|
||||
|
|
Loading…
Reference in New Issue