From fc614770ec21294a5997a45d2fa606f8f3a9335e Mon Sep 17 00:00:00 2001 From: sahar Date: Mon, 31 Jan 2022 22:18:19 +0100 Subject: [PATCH] Louder() in UsbPlayer implemented --- src/main/java/device/UsbPlayer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/device/UsbPlayer.java b/src/main/java/device/UsbPlayer.java index 539f37e..dc2b8d4 100644 --- a/src/main/java/device/UsbPlayer.java +++ b/src/main/java/device/UsbPlayer.java @@ -16,7 +16,11 @@ public class UsbPlayer implements Device { @Override public void louder() { - + if(Lautstaerke < 100) { + Lautstaerke += 1; + } else { + Lautstaerke = 100; + } } @Override