[PHY] getMod moved to private and only acessible to friend classes

pull/542/head
jgromes 2022-07-04 15:28:26 +02:00
rodzic 701e2c4a21
commit 907de02a79
1 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -300,8 +300,6 @@ class PhysicalLayer {
*/
uint8_t read();
virtual Module* getMod() = 0;
protected:
void updateDirectBuffer(uint8_t bit);
@ -320,6 +318,17 @@ class PhysicalLayer {
uint8_t _directSyncWordLen;
uint32_t _directSyncWordMask;
bool _gotSync;
virtual Module* getMod() = 0;
// allow specific classes access the private getMod method
friend class AFSKClient;
friend class RTTYClient;
friend class MorseClient;
friend class HellClient;
friend class SSTVClient;
friend class AX25Client;
friend class FSK4Client;
};
#endif