added test code
This commit is contained in:
@ -27,6 +27,13 @@ ReturnValue_t VirtualChannel::performOperation() {
|
||||
ReturnValue_t result = RETURN_OK;
|
||||
TmTcMessage message;
|
||||
|
||||
uint8_t data[50] = {0xa};
|
||||
result = ptme->writeToVc(vcId, data, sizeof(data));
|
||||
if (result != RETURN_OK) {
|
||||
sif::warning << "VirtualChannel::performOperation: Failed to send test data" << std::endl;
|
||||
return result;
|
||||
}
|
||||
|
||||
while (tmQueue->receiveMessage(&message) == RETURN_OK) {
|
||||
store_address_t storeId = message.getStorageId();
|
||||
const uint8_t* data = nullptr;
|
||||
|
@ -46,7 +46,7 @@ class VirtualChannel : public AcceptsTelemetryIF, public HasReturnvaluesIF {
|
||||
private:
|
||||
PtmeIF* ptme = nullptr;
|
||||
MessageQueueIF* tmQueue = nullptr;
|
||||
uint8_t vcId;
|
||||
uint8_t vcId = 0;
|
||||
|
||||
bool linkIsUp = false;
|
||||
|
||||
|
Reference in New Issue
Block a user