mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 18:22:28 +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)
|
int command_input(char *buf)
|
||||||
{
|
{
|
||||||
char *cptr;
|
char *cptr;
|
||||||
cptr = fgets(buf, ARRAY_SIZE(buf), stdin);
|
cptr = fgets(buf, 256, stdin);
|
||||||
|
|
||||||
if (cptr != NULL)
|
if (cptr != NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -88,7 +88,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
printf("\n inflash :> ");
|
printf("\n inflash :> ");
|
||||||
if (!command_input(com_buf)) continue;
|
if (command_input(com_buf))
|
||||||
|
continue;
|
||||||
command_handle(com_buf);
|
command_handle(com_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user