summaryrefslogtreecommitdiffstats
path: root/src/nolo.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-01-23 16:06:51 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-01-23 16:06:51 +0100
commit62fa041f865cb3593e07b2caa514b61e266e851e (patch)
tree60f0c633220dec337af425420d84f15b66395bc3 /src/nolo.c
parented4bdab6e72b8034da218be46db8774fd471655a (diff)
download0xFFFF-62fa041f865cb3593e07b2caa514b61e266e851e.tar.bz2
all: Rename variable readed to sent
Diffstat (limited to 'src/nolo.c')
-rw-r--r--src/nolo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nolo.c b/src/nolo.c
index e94a652..91bcf3f 100644
--- a/src/nolo.c
+++ b/src/nolo.c
@@ -256,7 +256,7 @@ static int nolo_send_image(struct usb_device_info * dev, struct image * image, i
uint16_t hash;
uint32_t size;
uint32_t need;
- uint32_t readed;
+ uint32_t sent;
int request;
int ret;
int transferred;
@@ -384,9 +384,9 @@ static int nolo_send_image(struct usb_device_info * dev, struct image * image, i
printf("Sending image...\n");
printf_progressbar(0, image->size);
image_seek(image, 0);
- readed = 0;
- while ( readed < image->size ) {
- need = image->size - readed;
+ sent = 0;
+ while ( sent < image->size ) {
+ need = image->size - sent;
if ( need > sizeof(buf) )
need = sizeof(buf);
ret = image_read(image, buf, need);
@@ -402,8 +402,8 @@ static int nolo_send_image(struct usb_device_info * dev, struct image * image, i
NOLO_ERROR_RETURN("Sending image was incomplete!", -1);
}
}
- readed += transferred;
- printf_progressbar(readed, image->size);
+ sent += ret;
+ printf_progressbar(sent, image->size);
}
if ( flash ) {