AP_HAL_SITL: correct loop counter type

This commit is contained in:
Peter Barker 2020-08-05 17:36:56 +10:00 committed by Andrew Tridgell
parent 4009f1583f
commit b3d755d018

View File

@ -144,7 +144,7 @@ void SITL_State::_gps_send_ubx(uint8_t msgid, uint8_t *buf, uint16_t size, uint8
chk[1] += (chk[0] += hdr[3]);
chk[1] += (chk[0] += hdr[4]);
chk[1] += (chk[0] += hdr[5]);
for (uint8_t i=0; i<size; i++) {
for (uint16_t i=0; i<size; i++) {
chk[1] += (chk[0] += buf[i]);
}
_gps_write(hdr, sizeof(hdr), instance);