1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 06:41:06 +02:00

Sony Headphones: Fix protocol v2

This commit is contained in:
José Rebelo 2024-03-15 23:34:17 +00:00
parent 0301d0e9a8
commit 5798466e55
2 changed files with 1 additions and 3 deletions

View File

@ -126,7 +126,7 @@ public class SonyHeadphonesProtocol extends GBDeviceProtocol {
// LinkBuds S 2.0.2: 01:00:03:00:00:07:00:00 // LinkBuds S 2.0.2: 01:00:03:00:00:07:00:00
// WH-1000XM5 1.1.3: 01:00:03:00:00:00:00:00 // WH-1000XM5 1.1.3: 01:00:03:00:00:00:00:00
// WF-1000XM5 2.0.1: 01:00:03:00:10:04:00:00 // WF-1000XM5 2.0.1: 01:00:03:00:10:04:00:00
protocolVersion = "v3"; protocolVersion = "v2";
} else { } else {
LOG.error("Unexpected init response payload length: {}", message.getPayload().length); LOG.error("Unexpected init response payload length: {}", message.getPayload().length);
return events.toArray(new GBDeviceEvent[0]); return events.toArray(new GBDeviceEvent[0]);

View File

@ -3277,14 +3277,12 @@
<item>@string/automatic</item> <item>@string/automatic</item>
<item>@string/sony_protocol_v1</item> <item>@string/sony_protocol_v1</item>
<item>@string/sony_protocol_v2</item> <item>@string/sony_protocol_v2</item>
<item>@string/sony_protocol_v3</item>
</string-array> </string-array>
<string-array name="sony_protocol_version_values"> <string-array name="sony_protocol_version_values">
<item>auto</item> <item>auto</item>
<item>v1</item> <item>v1</item>
<item>v2</item> <item>v2</item>
<item>v3</item>
</string-array> </string-array>
<string-array name="sony_sound_position_names"> <string-array name="sony_sound_position_names">