AP_GPS: params always use set method
This commit is contained in:
parent
0d32e6cbf3
commit
51540359e6
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user