mirror of https://github.com/ArduPilot/ardupilot
AP_ADSB: Access snprintf from hal
This commit is contained in:
parent
4990048efb
commit
9d90d16c2b
|
@ -643,7 +643,7 @@ void AP_ADSB::set_callsign(const char* str, const bool append_icao)
|
|||
} // for i
|
||||
|
||||
if (append_icao) {
|
||||
snprintf(&out_state.cfg.callsign[4], 5, "%04X", unsigned(out_state.cfg.ICAO_id % 0x10000));
|
||||
hal.util->snprintf(&out_state.cfg.callsign[4], 5, "%04X", unsigned(out_state.cfg.ICAO_id % 0x10000));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue