Skip to content

Commit

Permalink
Merge pull request #2445 from UltimateHackingKeyboard/chore-factory-u…
Browse files Browse the repository at this point in the history
…pgrade-80-1-sec

chore: add 1 sec wait after save user config in factory-update-uhk80.ts
  • Loading branch information
mondalaci authored Dec 15, 2024
2 parents e8e615a + 2c0ca5c commit f3bf32b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/usb/factory-update-uhk80.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
getDeviceFirmwarePath,
getFirmwarePackageJson,
TmpFirmware,
snooze,
UhkHidDevice,
UhkOperations,
UsbVariables,
Expand Down Expand Up @@ -92,6 +93,10 @@ try {
const configBuffer = fs.readFileSync(userConfigPath) as any;
await rightUhkOperations.saveUserConfiguration(configBuffer);

// we don't know why, but it makes more reliable the next operations
// maybe we overhaul the keyboard resources.
await snooze(1000);

// pair left and right half
await rightUhkOperations.pairToLeftHalf(leftUhkDevice);

Expand Down

0 comments on commit f3bf32b

Please sign in to comment.