mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Param: Use explicit type instead of auto for crc
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
parent
8d1937866b
commit
e6f523dad1
@ -3018,8 +3018,8 @@ bool AP_Param::add_param(uint8_t _key, uint8_t param_num, const char *pname, flo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check CRC
|
// check CRC
|
||||||
auto &hinfo = const_cast<GroupInfo*>(info.group_info)[0];
|
const auto &hinfo = const_cast<GroupInfo*>(info.group_info)[0];
|
||||||
const auto crc = to_int32(hinfo.def_value);
|
const int32_t crc = to_int32(hinfo.def_value);
|
||||||
|
|
||||||
int32_t current_crc;
|
int32_t current_crc;
|
||||||
if (load_int32(key, 0, current_crc) && current_crc != crc) {
|
if (load_int32(key, 0, current_crc) && current_crc != crc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user