Skip to content

Commit 7682a56

Browse files
committed
clarify wording in the volume warning
1 parent 6f0204b commit 7682a56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

adafruit_fruitjam/peripherals.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,9 @@ def volume(self, volume_level: int) -> None:
279279
if volume_level > self.safe_volume_limit:
280280
raise ValueError(
281281
f"""Volume level must be less than or equal to
282-
safe_volume_limit: {self.safe_volume_limit}.
283-
Using higher values could damage speakers.
284-
To override this limitation pass a value larger {self.safe_volume_limit}
285-
for the safe_volume_limit argument of the constructor."""
282+
safe_volume_limit: {self.safe_volume_limit}. Using higher values could damage speakers.
283+
To override this limitation set a larger value than {self.safe_volume_limit}
284+
for the safe_volume_limit with the constructor or property."""
286285
)
287286

288287
self._volume = volume_level

0 commit comments

Comments
 (0)