diff --git a/panon/backend/client.py b/panon/backend/client.py index 238fdb2..fcb6955 100644 --- a/panon/backend/client.py +++ b/panon/backend/client.py @@ -80,7 +80,7 @@ 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) - if smartmode: + if smart_mode: spectrum_source.update_smart_device() else: latest_wave_data = spectrum_source.read()