State string should start and end with the character
This commit is contained in:
parent
3881dd4891
commit
95ede98623
|
@ -95,8 +95,9 @@ void camera () {
|
||||||
}
|
}
|
||||||
|
|
||||||
void state () {
|
void state () {
|
||||||
String stateString = String(mc.CAMERA_EXPOSURE);
|
String stateString = String(mc.STATE);
|
||||||
|
stateString += String(mc.CAMERA_EXPOSURE);
|
||||||
stateString += String(cameraFrame);
|
stateString += String(cameraFrame);
|
||||||
stateString += String(mc.STATE);
|
stateString += String(mc.STATE);
|
||||||
mc.print(stateString);
|
mc.sendString(stateString);
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@ class Arduino {
|
||||||
const end : number = new Date().getTime()
|
const end : number = new Date().getTime()
|
||||||
const ms : number = end - this.timer
|
const ms : number = end - this.timer
|
||||||
let complete : any
|
let complete : any
|
||||||
//this.log.info(`${serial} -> ${data}`);
|
//this.log.info(`${serial} -> ${data}`)
|
||||||
if (this.queue[data] !== undefined) {
|
if (this.queue[data] !== undefined) {
|
||||||
this.locks[serial] = false
|
this.locks[serial] = false
|
||||||
complete = this.queue[data](ms) //execute callback
|
complete = this.queue[data](ms) //execute callback
|
||||||
|
|
Loading…
Reference in New Issue