mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_TemperatureSensor: fix param count change when loading drivers
This commit is contained in:
parent
1f100710d2
commit
f8ee112e47
@ -151,6 +151,11 @@ void AP_TemperatureSensor::init()
|
||||
_num_instances = instance + 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (_num_instances > 0) {
|
||||
// param count could have changed
|
||||
AP_Param::invalidate_count();
|
||||
}
|
||||
}
|
||||
|
||||
// update: - For all active instances update temperature and log TEMP
|
||||
|
Loading…
Reference in New Issue
Block a user