some renaming
This commit is contained in:
parent
d474c4a7ee
commit
f0c8fd2688
@ -298,7 +298,7 @@ ReturnValue_t CommandingServiceBase::sendTmPacket(uint8_t subservice, const uint
|
|||||||
|
|
||||||
ReturnValue_t CommandingServiceBase::sendTmPacket(uint8_t subservice, object_id_t objectId,
|
ReturnValue_t CommandingServiceBase::sendTmPacket(uint8_t subservice, object_id_t objectId,
|
||||||
const uint8_t* data, size_t dataLen) {
|
const uint8_t* data, size_t dataLen) {
|
||||||
telemetry::SourceDataWithObjectIdPrefix dataWithObjId(objectId, data, dataLen);
|
telemetry::DataWithObjectIdPrefix dataWithObjId(objectId, data, dataLen);
|
||||||
tmStoreHelper.preparePacket(service, subservice, tmPacketCounter);
|
tmStoreHelper.preparePacket(service, subservice, tmPacketCounter);
|
||||||
tmStoreHelper.setSourceDataSerializable(&dataWithObjId);
|
tmStoreHelper.setSourceDataSerializable(&dataWithObjId);
|
||||||
ReturnValue_t result = telemetry::storeAndSendTmPacket(tmStoreHelper, tmSendHelper);
|
ReturnValue_t result = telemetry::storeAndSendTmPacket(tmStoreHelper, tmSendHelper);
|
||||||
|
@ -9,9 +9,9 @@ namespace telemetry {
|
|||||||
|
|
||||||
ReturnValue_t storeAndSendTmPacket(TmStoreHelper& storeHelper, TmSendHelper& sendHelper);
|
ReturnValue_t storeAndSendTmPacket(TmStoreHelper& storeHelper, TmSendHelper& sendHelper);
|
||||||
|
|
||||||
class SourceDataWithObjectIdPrefix : public SerializeIF {
|
class DataWithObjectIdPrefix : public SerializeIF {
|
||||||
public:
|
public:
|
||||||
SourceDataWithObjectIdPrefix(object_id_t objectId, const uint8_t* srcData, size_t srcDataLen)
|
DataWithObjectIdPrefix(object_id_t objectId, const uint8_t* srcData, size_t srcDataLen)
|
||||||
: objectId(objectId), srcData(srcData), srcDataLen(srcDataLen) {}
|
: objectId(objectId), srcData(srcData), srcDataLen(srcDataLen) {}
|
||||||
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
|
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
|
||||||
Endianness streamEndianness) const override {
|
Endianness streamEndianness) const override {
|
||||||
|
Loading…
Reference in New Issue
Block a user