diff --git a/panon/backend/client.py b/panon/backend/client.py index cfdb689..238fdb2 100644 --- a/panon/backend/client.py +++ b/panon/backend/client.py @@ -80,7 +80,8 @@ async def mainloop(): if not use_glDFT and spectrum_data is None: # Set fps to 2 to lower CPU usage, when audio is unavailable. latest_wave_data = spectrum_source.read(fps=2) - spectrum_source.smart_device_id = "" + if smartmode: + spectrum_source.update_smart_device() else: latest_wave_data = spectrum_source.read() isBeat = beatsDetector is not None and beatsDetector.isBeat(latest_wave_data)