mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
pigeon_publish_raw: use capnp::Data::Reader instead of Builder (#19952)
old-commit-hash: b0c8ce486394f010bd031b9f22f6e0679aeed5a4
This commit is contained in:
@@ -458,8 +458,7 @@ void hardware_control_thread() {
|
||||
static void pigeon_publish_raw(PubMaster &pm, const std::string &dat) {
|
||||
// create message
|
||||
MessageBuilder msg;
|
||||
capnp::Data::Builder ublox_row((uint8_t*)dat.data(), dat.length());
|
||||
msg.initEvent().setUbloxRaw(ublox_row);
|
||||
msg.initEvent().setUbloxRaw(capnp::Data::Reader((uint8_t*)dat.data(), dat.length()));
|
||||
pm.send("ubloxRaw", msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user