AP_ADSB: fixed build warning

This commit is contained in:
Andrew Tridgell 2018-02-07 17:50:19 +11:00
parent 7d2e3c0d04
commit 9ceddbdab6
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,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", out_state.cfg.ICAO_id % 0x10000);
snprintf(&out_state.cfg.callsign[4], 5, "%04X", unsigned(out_state.cfg.ICAO_id % 0x10000));
}
}