1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 12:26:48 +01:00

Colmi R0x: Fix factory reset packet bytes

This commit is contained in:
Arjan Schrijver 2024-10-10 10:16:09 +02:00
parent fb907da6d5
commit f9150f4c2c

View File

@ -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);
}