From 907de02a79406508e22c85045369977f38e551b1 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 4 Jul 2022 15:28:26 +0200 Subject: [PATCH] [PHY] getMod moved to private and only acessible to friend classes --- src/protocols/PhysicalLayer/PhysicalLayer.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.h b/src/protocols/PhysicalLayer/PhysicalLayer.h index 425dddc7..c1d236d8 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.h +++ b/src/protocols/PhysicalLayer/PhysicalLayer.h @@ -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