Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async changePin(): Promise {
const changePin = new Messages.ChangePin();
// User may be propmpted for button press up to 2 times
await this.transport.call(Messages.MessageType.MESSAGETYPE_CHANGEPIN, changePin, LONG_TIMEOUT)
}
public async removePin(): Promise {
const changePin = new Messages.ChangePin();
changePin.setRemove(true);
// send
await this.transport.call(
Messages.MessageType.MESSAGETYPE_CHANGEPIN,
changePin
);
this.cacheFeatures(undefined)
}