summaryrefslogtreecommitdiffstats
path: root/src/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash.c')
-rw-r--r--src/flash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/flash.c b/src/flash.c
index 537dd82..e1f4f7b 100644
--- a/src/flash.c
+++ b/src/flash.c
@@ -18,7 +18,6 @@
#if HAVE_USB
#include "main.h"
-#include "hash.h"
#include "hexdump.h"
#include <stdio.h>
#include <string.h>
@@ -84,7 +83,7 @@ void flash_image(const char *filename, const char *piece, const char *device, co
unsigned long long size, off;
unsigned char bsize[4], tmp;
unsigned char nolofiller[128];
- ushort hash = do_hash_file(filename, piece);
+ ushort hash = 0; //do_hash_file(filename, piece);
if (piece == NULL) {
//exit(1);
@@ -152,6 +151,8 @@ void flash_image(const char *filename, const char *piece, const char *device, co
printf("[=] Bulkwriting the %s piece...\n", piece);
fflush(stdout);
+ #define BSIZE 0x20000
+
for(off = 0; off<size; off += BSIZE) {
char buf[BSIZE];
int bread, bsize = size-off;