mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
Ref T730, allow to init TxTransceiverDto from TransceiverDto
This commit is contained in:
committed by
Mat Sutcliffe
parent
1ceac51771
commit
caa78395a9
@@ -212,10 +212,26 @@ namespace BlackCore
|
|||||||
//! Transmit transceiver DTO
|
//! Transmit transceiver DTO
|
||||||
struct TxTransceiverDto
|
struct TxTransceiverDto
|
||||||
{
|
{
|
||||||
|
//! Ctor
|
||||||
|
TxTransceiverDto() {}
|
||||||
|
|
||||||
|
//! Ctor
|
||||||
|
TxTransceiverDto(const TransceiverDto &dto)
|
||||||
|
{
|
||||||
|
id = dto.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
//! Ctor
|
||||||
|
TxTransceiverDto(uint16_t value)
|
||||||
|
{
|
||||||
|
id = value;
|
||||||
|
}
|
||||||
|
|
||||||
uint16_t id; //!< id
|
uint16_t id; //!< id
|
||||||
MSGPACK_DEFINE(id)
|
MSGPACK_DEFINE(id)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! AudioTxOnTransceiversDto
|
||||||
struct AudioTxOnTransceiversDto
|
struct AudioTxOnTransceiversDto
|
||||||
{
|
{
|
||||||
static QByteArray getDtoName() { return "AudioTxOnTransceiversDto"; }
|
static QByteArray getDtoName() { return "AudioTxOnTransceiversDto"; }
|
||||||
@@ -231,6 +247,7 @@ namespace BlackCore
|
|||||||
MSGPACK_DEFINE(callsign, sequenceCounter, audio, lastPacket, transceivers)
|
MSGPACK_DEFINE(callsign, sequenceCounter, audio, lastPacket, transceivers)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! AudioRxOnTransceiversDto
|
||||||
struct AudioRxOnTransceiversDto
|
struct AudioRxOnTransceiversDto
|
||||||
{
|
{
|
||||||
static QByteArray getDtoName() { return "AudioRxOnTransceiversDto"; }
|
static QByteArray getDtoName() { return "AudioRxOnTransceiversDto"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user