fix a bug in greentea-client

reset "LastChar" after "tok_close" received
fix the bug where greentea-client require a character input between K-V pairs
pull/6865/head
Qinghao Shi 2018-05-10 15:26:46 +01:00
parent 634774f45f
commit d48d3aff2b
1 changed files with 1 additions and 0 deletions

View File

@ -728,6 +728,7 @@ static int gettok(char *out_str, const int str_size) {
if (LastChar == '}') {
LastChar = greentea_getc();
if (LastChar == '}') {
LastChar = '!';
return tok_close;
}
}