mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
parameter_update use uORB::Subscription consistently
This commit is contained in:
@@ -976,9 +976,11 @@ void Logger::run()
|
||||
|
||||
/* Check if parameters have changed */
|
||||
if (!_should_stop_file_log) { // do not record param changes after disarming
|
||||
parameter_update_s param_update;
|
||||
if (parameter_update_sub.updated()) {
|
||||
// clear update
|
||||
parameter_update_s pupdate;
|
||||
parameter_update_sub.copy(&pupdate);
|
||||
|
||||
if (parameter_update_sub.update(¶m_update)) {
|
||||
write_changed_parameters(LogType::Full);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user