uORB cleanup Subscription/Publication c++

This commit is contained in:
Daniel Agar
2017-08-17 09:40:35 -04:00
committed by Lorenz Meier
parent 7223780563
commit e63da5860e
6 changed files with 139 additions and 172 deletions

View File

@@ -911,8 +911,7 @@ void Logger::run()
/* Check if parameters have changed */
// this needs to change to a timestamped record to record a history of parameter changes
if (parameter_update_sub.check_updated()) {
parameter_update_sub.update();
if (parameter_update_sub.update()) {
write_changed_parameters();
}