From 2cb9c95ea18906258a4fc2df1fe229d191ae5e31 Mon Sep 17 00:00:00 2001 From: Grissess Date: Tue, 14 Jun 2016 02:56:53 -0400 Subject: Bugfixes --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.py') diff --git a/client.py b/client.py index 1680017..766b639 100644 --- a/client.py +++ b/client.py @@ -355,7 +355,7 @@ while True: elif pkt.cmd == CMD.PLAY: dur = pkt.data[0]+pkt.data[1]/1000000.0 FREQ = pkt.data[2] - AMP = MAX * (pkt.as_float(3)) + AMP = MAX * max(min(pkt.as_float(3), 1.0), 0.0) signal.setitimer(signal.ITIMER_REAL, dur) elif pkt.cmd == CMD.CAPS: data = [0] * 8 -- cgit v1.2.3-70-g09d2