From 7935d19af2e69af4b8b0569fe0ce043d50a2bde7 Mon Sep 17 00:00:00 2001 From: mbridak Date: Sun, 11 Feb 2024 10:47:30 -0800 Subject: [PATCH] removed unused import. fixed unassigned variable in poll radio. --- fdlogger/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fdlogger/__main__.py b/fdlogger/__main__.py index af4a475..bf7211e 100644 --- a/fdlogger/__main__.py +++ b/fdlogger/__main__.py @@ -16,7 +16,8 @@ from datetime import datetime, timedelta from json import dumps, loads, JSONDecodeError from shutil import copyfile -import pkgutil + +# import pkgutil # from xmlrpc.client import ServerProxy, Error import struct @@ -1043,7 +1044,7 @@ def poll_radio(self): self.set_fakefreq(int(newfreq)) self.oldmode = newmode if self.getband(newfreq) == 0: - self.setband(str(self.getband(oldfreq))) + self.setband(str(self.getband(self.oldfreq))) else: self.setband(str(self.getband(newfreq))) self.setmode(str(self.getmode(newmode)))