mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_TemperatureSensor: fix param count change when loading drivers
This commit is contained in:
committed by
Willian Galvani
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
|
||||
|
||||
Reference in New Issue
Block a user