From db10fd66f259d0c6020542dba4ab8efa05f0c544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Mon, 30 Dec 2024 17:44:06 +0000 Subject: [PATCH] Sony Headphones V2: Fix automatic power off out of bounds --- .../sony/headphones/protocol/impl/v2/SonyProtocolImplV2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/sony/headphones/protocol/impl/v2/SonyProtocolImplV2.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/sony/headphones/protocol/impl/v2/SonyProtocolImplV2.java index b48ab6a87..e5e6b5aea 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/sony/headphones/protocol/impl/v2/SonyProtocolImplV2.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/sony/headphones/protocol/impl/v2/SonyProtocolImplV2.java @@ -668,7 +668,7 @@ public class SonyProtocolImplV2 extends SonyProtocolImplV1 { final AutomaticPowerOff mode = AutomaticPowerOff.fromCode(payload[2], payload[3]); if (mode == null) { - LOG.warn("Unknown automatic power off codes {}", String.format("%02x %02x", payload[3], payload[4])); + LOG.warn("Unknown automatic power off codes {}", String.format("%02x %02x", payload[2], payload[3])); return Collections.emptyList(); }