Modify the way to clear Data

This commit is contained in:
CUAVcaijie
2021-03-09 17:04:26 +08:00
committed by Lorenz Meier
parent 063bb75891
commit 9f9b01504d
+1 -1
View File
@@ -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;