AP_TemperatureSensor: fix param count change when loading drivers

This commit is contained in:
Tom Pittenger 2022-12-12 11:47:30 -08:00 committed by Willian Galvani
parent 1f100710d2
commit f8ee112e47

View File

@ -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