diff --git a/src/drivers/uavcan/sensors/gnss.cpp b/src/drivers/uavcan/sensors/gnss.cpp index 091217c3a6..9c5df7b299 100644 --- a/src/drivers/uavcan/sensors/gnss.cpp +++ b/src/drivers/uavcan/sensors/gnss.cpp @@ -476,7 +476,7 @@ bool UavcanGnssBridge::injectData(const uint8_t *const data, const size_t data_l } result = _pub_rtcm.broadcast(msg) >= 0; - msg.data = {}; + msg.data.clear(); } return result;