Skip to content

Commit

Permalink
chore: fix typo in streamdeck-plus example
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Apr 30, 2024
1 parent 545cb6e commit f870e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/examples/streamdeck-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const { listStreamDecks, openStreamDeck, DeviceModelId } = require('../dist/inde
;(async () => {
const devices = await listStreamDecks()
if (!devices[0]) throw new Error('No device found')
await streamDeck.clearPanel()

const streamDeck = await openStreamDeck(devices[0].path)
await streamDeck.clearPanel()

if (streamDeck.MODEL !== DeviceModelId.PLUS) throw new Error('This demo only supports the plus')

Expand Down

0 comments on commit f870e74

Please sign in to comment.