Skip to content

Commit

Permalink
blink once after 1. and second cq, callsign or rapport. do not blink …
Browse files Browse the repository at this point in the history
…on 3.
  • Loading branch information
pavian57 committed Mar 16, 2021
1 parent 656ce6b commit c618501
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions qsostate.py
Expand Up @@ -73,13 +73,15 @@ def cq(self,tlg):

if tlg == 'cq':
print(":cq")
if sys.platform == 'esp8266': roger.dot()
self.cqlist.append(tlg)
if len(self.cqlist) < self.numberofcq:
if sys.platform == 'esp8266': roger.dot()
if tlg == 'sota':
print(":sota")
if sys.platform == 'esp8266': roger.dot()
self.sota = 1
self.sotalist.append(tlg)
if len(self.sotalist) < self.numberofcq:
if sys.platform == 'esp8266': roger.dot()
if self.sota == 1:
if len(self.cqlist) >= self.numberofcq and len(self.sotalist) >= self.numberofcq:
if sys.platform == 'esp8266': roger.roger()
Expand All @@ -103,11 +105,13 @@ def callsign(self,tlg):
if len(tlg) >= self.lencall:
if len(self.callsignlist) == 0:
print(':'+tlg)
if sys.platform == 'esp8266': roger.dot()
self.callsignlist.append(tlg)
if sys.platform == 'esp8266': roger.dot()
elif tlg == self.callsignlist[0]:
print(':'+tlg)
self.callsignlist.append(tlg)
if len(self.callsignlist) < self.numberofcq:
if sys.platform == 'esp8266': roger.dot()
if len(self.callsignlist) >= self.numberofcq:
# return the next state
if sys.platform == 'esp8266': roger.roger()
Expand Down Expand Up @@ -156,7 +160,8 @@ def report(self,tlg):
if self.check_rst(tlg):
self.tmplist.append(tlg)
print(':'+tlg)
if sys.platform == 'esp8266': roger.dot()
if len(self.tmplist) < self.numberofcq:
if sys.platform == 'esp8266': roger.dot()
if len(self.tmplist) >= self.numberofcq:
# return the next state
if sys.platform == 'esp8266': roger.roger()
Expand Down

0 comments on commit c618501

Please sign in to comment.