From 62fa041f865cb3593e07b2caa514b61e266e851e Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 23 Jan 2016 16:06:51 +0100 Subject: all: Rename variable readed to sent --- src/nolo.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/nolo.c') 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 ) { -- cgit v1.2.3