This commit is contained in:
Pavel Kirienko
2015-01-19 16:17:43 +03:00
parent c9227cf6d2
commit 632b668d44
@@ -222,10 +222,12 @@ int ${scope_prefix}<_tmpl>::${call_name}(${self_parameter_type} self, ::uavcan::
% for idx,a in enumerate(fields):
res = FieldTypes::${a.name}::${call_name}(self.${a.name}, codec, \
${'::uavcan::TailArrayOptDisabled' if (idx + 1) < len(fields) else 'tao_mode'});
% if (idx + 1) < len(fields):
if (res <= 0)
{
return res;
}
% endif
% endfor
return res;
}