Skip to content

Commit 44c02c6

Browse files
committed
fix: add hex support for Hue reset action serials
1 parent 717912c commit 44c02c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/TouchlinkPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export default function TouchlinkPage() {
292292
e.target.value
293293
.replaceAll(" ", "")
294294
.split(",")
295-
.map((v) => Number.parseInt(v, 10)),
295+
.map((v) => Number.parseInt(v, v.startsWith("0x") ? 16 : 10)),
296296
)
297297
}
298298
required

0 commit comments

Comments
 (0)