diff --git a/src/protocols/AFSK/AFSK.cpp b/src/protocols/AFSK/AFSK.cpp index bbf25b3a..6d7e518d 100644 --- a/src/protocols/AFSK/AFSK.cpp +++ b/src/protocols/AFSK/AFSK.cpp @@ -5,6 +5,11 @@ AFSKClient::AFSKClient(PhysicalLayer* phy, uint32_t pin): outPin(pin) { phyLayer = phy; } +AFSKClient::AFSKClient(AFSKClient* aud) { + phyLayer = aud->phyLayer; + outPin = aud->outPin; +} + int16_t AFSKClient::begin() { return(phyLayer->startDirect()); } diff --git a/src/protocols/AFSK/AFSK.h b/src/protocols/AFSK/AFSK.h index cdf6ebca..3b69f308 100644 --- a/src/protocols/AFSK/AFSK.h +++ b/src/protocols/AFSK/AFSK.h @@ -22,6 +22,12 @@ class AFSKClient { */ AFSKClient(PhysicalLayer* phy, uint32_t pin); + /*! + \brief Copy contructor. + \param aud Pointer to the AFSKClient instance to copy. + */ + AFSKClient(AFSKClient* aud); + /*! \brief Initialization method. \returns \ref status_codes @@ -56,6 +62,7 @@ class AFSKClient { friend class SSTVClient; friend class AX25Client; friend class FSK4Client; + friend class BellClient; }; #endif