skip attenuator functions of soft roam from hard roam execution

Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
This commit is contained in:
anil-tegala
2024-05-02 18:28:40 +05:30
parent af82ac6588
commit 145e6565b0

View File

@@ -749,7 +749,7 @@ class HardRoam(Realm):
# This is where the main roaming functionality begins # This is where the main roaming functionality begins
def run(self, file_n=None): def run(self, file_n=None):
try: try:
print("Setting both attenuators to zero attenuation at the beginning.") if self.soft_roam:
logging.info("Setting both attenuators to zero attenuation at the beginning.") logging.info("Setting both attenuators to zero attenuation at the beginning.")
ser_no = self.attenuator_serial() ser_no = self.attenuator_serial()
print("Available attenuators :", ser_no[0], ser_no[1]) print("Available attenuators :", ser_no[0], ser_no[1])