Skip to content

Commit

Permalink
removed unused import. fixed unassigned variable in poll radio.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Feb 11, 2024
1 parent 7952b43 commit 7935d19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fdlogger/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit 7935d19

Please sign in to comment.