mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +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
|
||||
struct TxTransceiverDto
|
||||
{
|
||||
//! Ctor
|
||||
TxTransceiverDto() {}
|
||||
|
||||
//! Ctor
|
||||
TxTransceiverDto(const TransceiverDto &dto)
|
||||
{
|
||||
id = dto.id;
|
||||
}
|
||||
|
||||
//! Ctor
|
||||
TxTransceiverDto(uint16_t value)
|
||||
{
|
||||
id = value;
|
||||
}
|
||||
|
||||
uint16_t id; //!< id
|
||||
MSGPACK_DEFINE(id)
|
||||
};
|
||||
|
||||
//! AudioTxOnTransceiversDto
|
||||
struct AudioTxOnTransceiversDto
|
||||
{
|
||||
static QByteArray getDtoName() { return "AudioTxOnTransceiversDto"; }
|
||||
@@ -231,6 +247,7 @@ namespace BlackCore
|
||||
MSGPACK_DEFINE(callsign, sequenceCounter, audio, lastPacket, transceivers)
|
||||
};
|
||||
|
||||
//! AudioRxOnTransceiversDto
|
||||
struct AudioRxOnTransceiversDto
|
||||
{
|
||||
static QByteArray getDtoName() { return "AudioRxOnTransceiversDto"; }
|
||||
|
||||
Reference in New Issue
Block a user