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 { do {
#ifdef FLUTTER_UI #ifdef FLUTTER_UI
static const int LINE_INPUT_MAX_CHAR = 1024; static const int LINE_INPUT_MAX_CHAR = 1024;
char szLineStr[LINE_INPUT_MAX_CHAR]; char line[LINE_INPUT_MAX_CHAR];
CommandChannel *channel = CommandChannel::getInstance(); CommandChannel *channel = CommandChannel::getInstance();
while (!channel->popupCommand(szLineStr)) Idle(); while (!channel->popupCommand(line))
cmd = szLineStr; Idle();
LOGD("szLine = %s\n", szLineStr); cmd = line;
LOGD("[uci] input: %s\n", line);
#else #else
if (argc == 1 && !getline(cin, cmd)) // Block here waiting for input or EOF if (argc == 1 && !getline(cin, cmd)) // Block here waiting for input or EOF
cmd = "quit"; cmd = "quit";