Skip to content

Commit

Permalink
fix: erase user configuration (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
ert78gb authored Jan 9, 2025
1 parent 4a68116 commit 9b5967c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uhk-usb/src/uhk-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export class UhkOperations {
public async eraseUserConfig(): Promise<void> {
this.logService.usbOps('[DeviceOperation] USB[T]: Erase user configuration');
const buffer = Buffer.from(Array(2 ** 15 - 64).fill(0xff));
await this.sendConfigToKeyboard(buffer, false);
await this.sendConfigToKeyboard(buffer, true);
await this.writeConfigToEeprom(ConfigBufferId.stagingUserConfig);
}

Expand Down

0 comments on commit 9b5967c

Please sign in to comment.