Changes
1 changed files (+4/-0)
-
-
@@ -12,6 +12,7 @@ while not threadFlag:os.system("beep -f"+ freq+" -l 100000") #print("beep -f %f" % (freq)) thread2 = 0 tc = 0 @app.before_first_request def activate_job():
-
@@ -21,6 +22,7 @@@app.route('/startfreq/<freq>') def freq(freq): global threadFlag global thread2 threadFlag = False print(freq) thread2 = Thread(target=playFunction, args=(freq,))
-
@@ -30,7 +32,9 @@@app.route('/stopfreq/<freq2>') def freq2(freq2): global threadFlag global thread2 threadFlag = True thread2.stop() return("200") if __name__ == "__main__":
-