Skip to content

Commit 2dc51d3

Browse files
Don't always reset overflow to zero immediately by changing "or" to "and"
1 parent 54fda80 commit 2dc51d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amplipi/ctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def set_vol():
876876

877877
# If the change made vol f be between the min and max, delete the overflow
878878
# This is useful so that you can click wherever you want on the volume bar and expect it to end up there without rubberbanding back to whatever vol_f + vol_f_overflow value you'd otherwise be at
879-
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
879+
zone.vol_f_overflow = 0 if vol_f_new != models.MIN_VOL_F and vol_f_new != models.MAX_VOL_F else zone.vol_f_overflow
880880

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

0 commit comments

Comments
 (0)