Skip to content

Commit 418485f

Browse files
Reconfigure check to be not as confusing to read
1 parent d3bd26a commit 418485f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

amplipi/ctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ def set_vol():
875875
else:
876876
raise Exception('unable to update zone volume')
877877

878-
zone.vol_f_overflow = 0 if models.MIN_VOL_F < vol_f_new and vol_f_new < models.MAX_VOL_F else zone.vol_f_overflow
878+
zone.vol_f_overflow = 0 if vol_f_new != models.MIN_VOL_F or vol_f_new != models.MAX_VOL_F else zone.vol_f_overflow
879879

880880
# To avoid potential unwanted loud output:
881881
# If muting, mute before setting volumes

0 commit comments

Comments
 (0)