Add base into_buffer method for messages with no payload
@@ -270,3 +270,8 @@ class SBP(object):
self.stream_payload.reset(buf, offset)
self.parser.build_stream(payload, self.stream_payload)
return self.stream_payload.length
+
+ def into_buffer(self, buf, offset):
+ def _empty_payload(_buf, _offset, _payload):
+ return 0
+ return self.pack_into(buf, offset, _empty_payload)
