Skip to content

Commit

Permalink
fixed case-insensitive comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ha committed Apr 19, 2023
1 parent 897989c commit 0775c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/AutoGridCL/AutoGridCL.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def grid_callback(new_grid):
sgps.open(GPS_PORT, GPS_RATE, nmea_p.handle_serial, timeout=1.2)

if type(the_packet) == StatusPacket:
if gps_grid.lower() != "" and the_packet.de_grid.lower() != gps_grid:
if gps_grid != "" and the_packet.de_grid.lower() != gps_grid.lower():
print(
"Sending Grid Change to WSJT-X, old grid:{} new grid: {}".format(
the_packet.de_grid, gps_grid
Expand Down

0 comments on commit 0775c66

Please sign in to comment.