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/6950/head
Qinghao Shi 2018-05-10 15:26:46 +01:00 committed by adbridge
parent a000474b89
commit 81a01b87fa
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;
}
}