mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 16:25:20 +02:00
command_input return 0 means correct
This commit is contained in:
parent
4c7da19fb5
commit
1275a789b7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user