uci: channel: szLineStr 更名为 line

This commit is contained in:
Calcitem 2020-12-12 17:47:59 +08:00
parent a0878fd000
commit 60c5f4b63c
1 changed files with 5 additions and 4 deletions

View File

@ -220,11 +220,12 @@ void UCI::loop(int argc, char *argv[])
do {
#ifdef FLUTTER_UI
static const int LINE_INPUT_MAX_CHAR = 1024;
char szLineStr[LINE_INPUT_MAX_CHAR];
char line[LINE_INPUT_MAX_CHAR];
CommandChannel *channel = CommandChannel::getInstance();
while (!channel->popupCommand(szLineStr)) Idle();
cmd = szLineStr;
LOGD("szLine = %s\n", szLineStr);
while (!channel->popupCommand(line))
Idle();
cmd = line;
LOGD("[uci] input: %s\n", line);
#else
if (argc == 1 && !getline(cin, cmd)) // Block here waiting for input or EOF
cmd = "quit";