mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 17:02:04 +08:00
pigeon_publish_raw: use capnp::Data::Reader instead of Builder (#19952)
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