@@ -32,22 +32,22 @@ export class SCData {
32
32
} , 5000 ) ;
33
33
}
34
34
public set ( type , cmd ) {
35
- const p = cmd . split ( "= " ) ;
35
+ const p = cmd . split ( ": " ) ;
36
36
this . setPlain ( type , cmd , this . base64toString ( p [ 1 ] ) ) ;
37
37
}
38
38
39
39
public setPlain ( type , cmd , value : any = true ) {
40
- const p = cmd . split ( "= " ) ;
40
+ const p = cmd . split ( ": " ) ;
41
41
const key = p [ 0 ] ;
42
42
// Switch between different set-types
43
43
switch ( type ) {
44
44
case "LIVE" :
45
45
set ( this . data , key , value ) ;
46
- PubSub . publish ( key , "SET LIVE " + key + "= " + this . stringToBase64 ( value ) ) ;
46
+ PubSub . publish ( key , "SET LIVE " + key + ": " + this . stringToBase64 ( value ) ) ;
47
47
break ;
48
48
case "STATIC" :
49
49
set ( this . data , key , value ) ;
50
- PubSub . publish ( key , "SET STATIC " + key + "= " + this . stringToBase64 ( value ) ) ;
50
+ PubSub . publish ( key , "SET STATIC " + key + ": " + this . stringToBase64 ( value ) ) ;
51
51
set ( this . static , key , value ) ;
52
52
// Save file if necessary and set flags
53
53
this . staticChanged = true ;
@@ -61,7 +61,7 @@ export class SCData {
61
61
break ;
62
62
case "TICK" :
63
63
set ( this . data , key , value ) ;
64
- PubSub . publish ( key , "SET TICK " + key + "= " + this . stringToBase64 ( value ) ) ;
64
+ PubSub . publish ( key , "SET TICK " + key + ": " + this . stringToBase64 ( value ) ) ;
65
65
break ;
66
66
}
67
67
Logging . debug ( "SET " + key + " to " + value + " (" + type + ")" ) ;
@@ -162,7 +162,7 @@ export class SCData {
162
162
parseStream . on ( "data" , ( pojo ) => {
163
163
deepForEach ( pojo , ( v , k , s , p ) => {
164
164
if ( typeof v !== "object" ) {
165
- this . set ( "STATIC" , p + "=" + v ) ;
165
+ this . setPlain ( "STATIC" , p , v ) ;
166
166
}
167
167
168
168
} ) ;
0 commit comments