Merge pull request #19 from george-hopkins/fix-silence

Fix unresponsive GUI on silence
This commit is contained in:
Scott Lawson 2017-01-21 14:48:17 -08:00 committed by GitHub
commit 5c44d233da

View File

@ -222,6 +222,7 @@ def microphone_update(stream):
r_curve.setData(y=led.pixels[0]) r_curve.setData(y=led.pixels[0])
g_curve.setData(y=led.pixels[1]) g_curve.setData(y=led.pixels[1])
b_curve.setData(y=led.pixels[2]) b_curve.setData(y=led.pixels[2])
if config.USE_GUI:
app.processEvents() app.processEvents()
if config.DISPLAY_FPS: if config.DISPLAY_FPS:
print('FPS {:.0f} / {:.0f}'.format(frames_per_second(), config.FPS)) print('FPS {:.0f} / {:.0f}'.format(frames_per_second(), config.FPS))