mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
command_input return 0 means correct
This commit is contained in:
@@ -130,7 +130,7 @@ int handle_boot(void)
|
||||
int command_input(char *buf)
|
||||
{
|
||||
char *cptr;
|
||||
cptr = fgets(buf, ARRAY_SIZE(buf), stdin);
|
||||
cptr = fgets(buf, 256, stdin);
|
||||
|
||||
if (cptr != NULL)
|
||||
return 0;
|
||||
|
||||
@@ -88,7 +88,8 @@ int main(int argc, char **argv)
|
||||
|
||||
while (1) {
|
||||
printf("\n inflash :> ");
|
||||
if (!command_input(com_buf)) continue;
|
||||
if (command_input(com_buf))
|
||||
continue;
|
||||
command_handle(com_buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user