Skip to content

Commit 8407512

Browse files
committed
fineTuneEAS
1 parent 6f4e861 commit 8407512

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: modules/locationdata.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,10 @@ def alertBrodcast():
378378
# get the latest weather alerts and broadcast them if there are any
379379
global wxAlertCache
380380
currentAlert = getWeatherAlerts(latitudeValue, longitudeValue)
381-
382-
if currentAlert == ERROR_FETCHING_DATA or currentAlert == NO_DATA_NOGPS or currentAlert == NO_ALERTS:
381+
# check if any reason to discard the alerts
382+
if currentAlert == ERROR_FETCHING_DATA or currentAlert == NO_DATA_NOGPS:
383+
return False
384+
elif currentAlert == NO_ALERTS:
383385
wxAlertCache = ""
384386
return False
385387
# broadcast the alerts send to wxBrodcastCh

Diff for: modules/system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def handleMultiPing(nodeID=0, deviceID=1):
641641
def handleWxBroadcast(deviceID=1):
642642
# only allow API call every 15 minutes
643643
clock = datetime.now()
644-
if clock.minute % 15 == 0:
644+
if clock.minute % 20 == 0:
645645
return False
646646

647647
# check for alerts

0 commit comments

Comments
 (0)