From ffa02b1f0a709198cd8c2c69add00f031a5145eb Mon Sep 17 00:00:00 2001 From: uhi22 Date: Wed, 7 Aug 2024 13:23:21 +0200 Subject: [PATCH] listenerNoGui: beep only in case of detected MAC --- listenerNoGui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/listenerNoGui.py b/listenerNoGui.py index 153a777..91fb644 100755 --- a/listenerNoGui.py +++ b/listenerNoGui.py @@ -31,7 +31,7 @@ def cbShowStatus(s, selection=""): def testBlockingBeep(patternselection): if (patternselection==1): # The "MAC Found" beep - p.ChangeDutyCycle(10) + p.ChangeDutyCycle(30) p.ChangeFrequency(1100) time.sleep(0.3) p.ChangeFrequency(1300) @@ -82,10 +82,10 @@ def trySomeHttp(): print(len(strGpsPos)) if (len(strGpsPos)>7): print("Valid GPS coordinates, and http logging worked") - testBlockingBeep(2) + #testBlockingBeep(2) else: print("http was ok, but no GPS position") - testBlockingBeep(3) + #testBlockingBeep(3) except Exception as err: contents = "(no contents received) " + str(err) print(contents)