AP_GPS: params always use set method

This commit is contained in:
Iampete1 2022-07-05 04:08:56 +01:00 committed by Peter Hall
parent 0d32e6cbf3
commit 51540359e6

View File

@ -460,7 +460,7 @@ void AP_GPS::init(const AP_SerialManager& serial_manager)
// sanity check update rate // sanity check update rate
for (uint8_t i=0; i<GPS_MAX_RECEIVERS; i++) { for (uint8_t i=0; i<GPS_MAX_RECEIVERS; i++) {
if (_rate_ms[i] <= 0 || _rate_ms[i] > GPS_MAX_RATE_MS) { if (_rate_ms[i] <= 0 || _rate_ms[i] > GPS_MAX_RATE_MS) {
_rate_ms[i] = GPS_MAX_RATE_MS; _rate_ms[i].set(GPS_MAX_RATE_MS);
} }
} }
} }