custom module: receive() not passing boolean arguments properly
This commit is contained in:
parent
f2f1949053
commit
90b34d7475
2 changed files with 9 additions and 4 deletions
|
|
@ -74,11 +74,11 @@ class OscServer {
|
|||
case 'number':
|
||||
return {type: 'f', value: arg}
|
||||
case 'boolean':
|
||||
return {type: arg ? 'T' : 'F'}
|
||||
return {type: arg ? 'T' : 'F', value: arg}
|
||||
case 'string':
|
||||
return {type: 's', value:arg}
|
||||
return {type: 's', value: arg}
|
||||
default:
|
||||
return {type: 's', value:JSON.stringify(arg)}
|
||||
return {type: 's', value: JSON.stringify(arg)}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue