Skip to content

Commit 1638378

Browse files
committed
Fix: use hw version to report old kit message
1 parent d9b6bae commit 1638378

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/features/pmicControl/npm/deviceSetups.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ export const npm1304DeviceSetup = (firmware: NpmFirmware): DeviceSetup => ({
369369

370370
await dispose();
371371

372-
if (
373-
npmDevice.pmicRevision !== undefined &&
374-
!(npmDevice.pmicRevision >= 1.1)
375-
) {
372+
if (hwVersion !== undefined && semver.lte(hwVersion, '0.9.0')) {
376373
await new Promise<void>(resolve => {
377374
const information: PmicDialog = {
378375
type: 'alert',

0 commit comments

Comments
 (0)