* Minor stetical fixups
* Cut 0.4 release :)
This commit is contained in:
1 parent
5a96158322
commit
fc3a613276
2 files changed
+5
-5
No files matched your search
@@ -208,7 +208,6 @@ int fiasco_add_eof(int fd)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int fiasco_add(int fd, const char *name, const char *file, const char *version)
|
int fiasco_add(int fd, const char *name, const char *file, const char *version)
|
||||||
{
|
{
|
||||||
int gd,ret;
|
int gd,ret;
|
||||||
|
|||||||
+5
-4
@@ -108,7 +108,6 @@ void show_usage()
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int unpack_callback(struct header_t *header)
|
int unpack_callback(struct header_t *header)
|
||||||
{
|
{
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
@@ -149,7 +148,7 @@ int flash_callback(struct header_t *header)
|
|||||||
}
|
}
|
||||||
|
|
||||||
type = (char *)fpid_file(header->name);
|
type = (char *)fpid_file(header->name);
|
||||||
printf("Flashing %s (%s)\n", header->name, type);
|
printf("\nFlashing %s (%s)\n", header->name, type);
|
||||||
flash_image(header->name, type, NULL);
|
flash_image(header->name, type, NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -164,7 +163,8 @@ void unpack_fiasco_image(char *file)
|
|||||||
|
|
||||||
int fiasco_flash(char *file)
|
int fiasco_flash(char *file)
|
||||||
{
|
{
|
||||||
char *p,version[64];
|
char *p;
|
||||||
|
char version[64];
|
||||||
|
|
||||||
if (connect_via_usb()) {
|
if (connect_via_usb()) {
|
||||||
fprintf(stderr, "Cannot connect to device. It is possibly not in boot stage.\n");
|
fprintf(stderr, "Cannot connect to device. It is possibly not in boot stage.\n");
|
||||||
@@ -175,6 +175,7 @@ int fiasco_flash(char *file)
|
|||||||
cmd_info("");
|
cmd_info("");
|
||||||
|
|
||||||
check_nolo_order();
|
check_nolo_order();
|
||||||
|
get_nolo_version();
|
||||||
get_sw_version();
|
get_sw_version();
|
||||||
get_hw_revision(version, 44);
|
get_hw_revision(version, 44);
|
||||||
|
|
||||||
@@ -186,7 +187,7 @@ int fiasco_flash(char *file)
|
|||||||
printf("SubVersionString autodetected: '%s'\n", subverstr);
|
printf("SubVersionString autodetected: '%s'\n", subverstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get_nolo_version();
|
printf("\n");
|
||||||
|
|
||||||
fiasco_callback = &flash_callback;
|
fiasco_callback = &flash_callback;
|
||||||
openfiasco(file, "xloader", 0);
|
openfiasco(file, "xloader", 0);
|
||||||
|
|||||||
Reference in new issue
Block a user