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:
parent
fb907da6d5
commit
f9150f4c2c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user