1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 14:32:54 +01:00

Sony WH-1000XM5: Fix speak-to-chat enable/disable

This commit is contained in:
José Rebelo 2023-07-22 10:24:33 +01:00
parent 5c78488e93
commit 57ef0ded64

View File

@ -359,9 +359,9 @@ public class SonyProtocolImplV3 extends SonyProtocolImplV2 {
return Collections.emptyList(); return Collections.emptyList();
} }
final Boolean disabled = booleanFromByte(payload[3]); final Boolean disabled = booleanFromByte(payload[2]);
if (disabled == null) { if (disabled == null) {
LOG.warn("Unknown speak to chat enabled code {}", String.format("%02x", payload[3])); LOG.warn("Unknown speak to chat enabled code {}", String.format("%02x", payload[2]));
return Collections.emptyList(); return Collections.emptyList();
} }