Skip to content

Commit 94e796e

Browse files
Fix some documentation oddities
1 parent 2dc51d3 commit 94e796e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

amplipi/ctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ def set_vol():
850850
vol, vol_f, vol_f_delta, vol_min, or vol_max.
851851
"""
852852
# Field precedence: vol (db) > vol_delta > vol (float)
853-
# vol (db) is last in the stack to cover the default case of a None volume change, but when it does have a value it takes overrides the others
853+
# vol (db) is first in precedence yet last in the stack to cover the default case of a None volume change, but when it does have a value it overrides the other options
854854
if update.vol_delta_f is not None and update.vol is None:
855855
true_vol_f = zone.vol_f + zone.vol_f_overflow
856856
expected_vol_total = update.vol_delta_f + true_vol_f

amplipi/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class fields(SimpleNamespace):
9393
VolumeMax = Field(ge=MIN_VOL_DB, le=MAX_VOL_DB, description='Max output volume in dB')
9494
GroupMute = Field(description='Set to true if output is all zones muted')
9595
GroupVolume = Field(ge=MIN_VOL_DB, le=MAX_VOL_DB, description='Average output volume')
96-
GroupVolumeF = Field(ge=MIN_VOL_F, le=MAX_VOL_F, description='Average output volume as a floating-point number.')
96+
GroupVolumeF = Field(ge=MIN_VOL_F, le=MAX_VOL_F, description='Average output volume as a floating-point number')
9797
Disabled = Field(description='Set to true if not connected to a speaker')
9898
Zones = Field(description='Set of zone ids belonging to a group')
9999
Groups = Field(description='List of group ids')

web/src/components/CardVolumeSlider/CardVolumeSlider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const applyPlayerVol = (vol, zones, sourceId, apply) => {
3131
}
3232
};
3333

34-
// cumulativeDelta reflects the amount of movement that the
34+
// cumulativeDelta reflects the amount of movement that the volume bar has had that has gone unreflected in the backend
3535
let cumulativeDelta = 0.0;
3636
let sendingPacketCount = 0;
3737

0 commit comments

Comments
 (0)