Micro optimization in UAVCAN polling loop

This commit is contained in:
Pavel Kirienko
2014-05-09 02:23:52 +04:00
parent 5a90582567
commit 8501158427

View File

@@ -284,7 +284,7 @@ int UavcanNode::run()
}
//can we mix?
if (_mixers != nullptr) {
if (controls_updated && (_mixers != nullptr)) {
// XXX one output group has 8 outputs max,
// but this driver could well serve multiple groups.