Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,16 @@ public byte[] exportPairingKey() {
return Utils.concatArrays(Utils.intToBytes(pairingData.identifier), pairingData.key);
}

/**
* Returns whether the first character of the serial number of this device matches 'D', indicating
* it is a Flic Duo device
*
* @return true if the device is a Flic Duo device, false otherwise
*/
public boolean isDuo() {
return Flic2Button.this.serialNumber.charAt(0) == 'D';
}

/**
* Gets a string representation.
*
Expand Down