logger: reduce CPU load by ~1.5%

Reduces CPU load from ~6.9% to 5.3% (tested on Pixracer & Pixhawk). The
method is only used once, so it does not increase flash usage.
This commit is contained in:
Beat Küng
2017-04-07 16:58:25 +02:00
committed by Lorenz Meier
parent 75bd4f1121
commit 7f0db95f87
+1 -1
View File
@@ -215,7 +215,7 @@ private:
void write_changed_parameters();
bool copy_if_updated_multi(LoggerSubscription &sub, int multi_instance, void *buffer, bool try_to_subscribe);
inline bool copy_if_updated_multi(LoggerSubscription &sub, int multi_instance, void *buffer, bool try_to_subscribe);
/**
* Write exactly one ulog message to the logger and handle dropouts.