State string should start and end with the character

This commit is contained in:
Matt McWilliams 2023-06-17 13:08:00 -04:00
parent 3881dd4891
commit 95ede98623
2 changed files with 4 additions and 3 deletions

View File

@ -95,8 +95,9 @@ void camera () {
}
void state () {
String stateString = String(mc.CAMERA_EXPOSURE);
String stateString = String(mc.STATE);
stateString += String(mc.CAMERA_EXPOSURE);
stateString += String(cameraFrame);
stateString += String(mc.STATE);
mc.print(stateString);
mc.sendString(stateString);
}

View File

@ -224,7 +224,7 @@ class Arduino {
const end : number = new Date().getTime()
const ms : number = end - this.timer
let complete : any
//this.log.info(`${serial} -> ${data}`);
//this.log.info(`${serial} -> ${data}`)
if (this.queue[data] !== undefined) {
this.locks[serial] = false
complete = this.queue[data](ms) //execute callback