Skip to content

Commit c249974

Browse files
authored
Merge pull request #95 from bitfocus/fix-PPAUSE-state
Fix ppause state
2 parents 1bda9aa + 3be66bf commit c249974

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/variables.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,10 @@ function UpdateSdVariables(self: WingInstance, path: string, args: OSCMetaArgume
484484

485485
if (command == '$stat') {
486486
if (subcommand == 'state') {
487-
const state = args.value as string
487+
let state = args.value as string
488+
if (state == 'PPAUSE') {
489+
state = 'PAUSE'
490+
}
488491
self.setVariableValues({ [`wlive_${card}_state`]: state })
489492
} else if (subcommand == 'etime') {
490493
const seconds = Math.floor((args.value as number) / 1000)

0 commit comments

Comments
 (0)