summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-09 20:11:25 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-09 20:11:25 +0200
commit5dc162bc4a71321bd0fcec8db96ec89b88a60ed3 (patch)
tree19e6215fa4e25426f59f429ce17809680e0364e1
parent564b0715f1c08b08f48777934a28d1462b10c255 (diff)
download0xFFFF-5dc162bc4a71321bd0fcec8db96ec89b88a60ed3.tar.bz2
Delete old check_nolo_order code
-rw-r--r--src/flash.c8
-rw-r--r--src/main.c2
-rw-r--r--src/main.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/flash.c b/src/flash.c
index e1f4f7b..a201a81 100644
--- a/src/flash.c
+++ b/src/flash.c
@@ -23,12 +23,12 @@
#include <string.h>
#include <stdlib.h>
-void check_nolo_order_failed()
+/*void check_nolo_order_failed()
{
fprintf(stderr, "\nERROR: Provide xloader before the secondary. NOLO disagrees anything else.\n");
fprintf(stderr, "Use: -p xloader.bin -p secondary.bin\n");
exit(1);
-}
+}*/
void query_error_message()
{
@@ -50,7 +50,7 @@ void query_error_message()
}
}
-void check_nolo_order()
+/*void check_nolo_order()
{
int i, xlo = 0;
@@ -71,7 +71,7 @@ void check_nolo_order()
if (xlo && xlo != 0x11)
check_nolo_order_failed();
-}
+}*/
void flash_image(const char *filename, const char *piece, const char *device, const char *hwrevs, const char *version)
{
diff --git a/src/main.c b/src/main.c
index 1f64220..0761da2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -567,7 +567,7 @@ int main(int argc, char **argv)
if (pcs_n) {
char version[64];
- check_nolo_order();
+// check_nolo_order();
get_sw_version();
get_hw_revision(version, 44);
if (subverstr == NULL) {
diff --git a/src/main.h b/src/main.h
index 6559f2d..ccc72f7 100644
--- a/src/main.h
+++ b/src/main.h
@@ -16,7 +16,7 @@ int queue_mode();
int reverse_extract_pieces(char *dir);
void flash_image(const char *filename, const char *piece, const char *device, const char *hwrevs, const char *version);
int fiasco_read_image(char *file);
-void check_nolo_order();
+//void check_nolo_order();
extern struct usb_dev_handle *dev;
unsigned long get_file_size(const char *file);
void progressbar(unsigned long long part, unsigned long long total);