handle weird contour reply to CSI 11 #1780

This commit is contained in:
nick black 2021-06-16 09:51:48 -04:00
parent 7d0375f8e0
commit 9950d71e89
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -811,6 +811,13 @@ pump_control_read(init_state* inits, unsigned char c){
}
break;
case STATE_BGSEMI: // drain string
if(c == '\x07'){ // contour sends this at the end for some unknown reason
if(stash_string(inits)){
return -1;
}
inits->state = STATE_NULL;
break;
}
inits->numeric = c;
if(ruts_string(inits, STATE_BG1)){
return -1;