1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 14:14:38 +02:00

command_input return 0 means correct

This commit is contained in:
xiangfu 2009-04-28 17:22:07 +00:00
parent 4c7da19fb5
commit 1275a789b7
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}