From f9150f4c2c2c705b6cbfab348234dd36d3921e8f Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Thu, 10 Oct 2024 10:16:09 +0200 Subject: [PATCH] Colmi R0x: Fix factory reset packet bytes --- .../service/devices/colmi/ColmiR0xDeviceSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/colmi/ColmiR0xDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/colmi/ColmiR0xDeviceSupport.java index ede3864ee..13a3903e2 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/colmi/ColmiR0xDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/colmi/ColmiR0xDeviceSupport.java @@ -553,7 +553,7 @@ public class ColmiR0xDeviceSupport extends AbstractBTLEDeviceSupport { @Override public void onReset(int flags) { if ((flags & GBDeviceProtocol.RESET_FLAGS_FACTORY_RESET) != 0) { - byte[] resetPacket = buildPacket(new byte[]{ColmiR0xConstants.CMD_FACTORY_RESET, 0x01}); + byte[] resetPacket = buildPacket(new byte[]{ColmiR0xConstants.CMD_FACTORY_RESET, 0x66, 0x66}); LOG.info("Factory reset request sent: {}", StringUtils.bytesToHex(resetPacket)); sendWrite("resetRequest", resetPacket); }