diff options
Diffstat (limited to 'commandline/library')
| -rw-r--r-- | commandline/library/micronucleus_lib.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/commandline/library/micronucleus_lib.c b/commandline/library/micronucleus_lib.c index 4317af5..6bbf04c 100644 --- a/commandline/library/micronucleus_lib.c +++ b/commandline/library/micronucleus_lib.c @@ -1,3 +1,4 @@ +  /*    Created: September 2012    by ihsan Kehribar <ihsan@kehribar.me> @@ -148,8 +149,8 @@ int micronucleus_writeFlash(micronucleus* deviceHandle, unsigned int program_siz      // give microcontroller enough time to write this page and come back online      delay(deviceHandle->write_sleep); - -    if (res != 64) return -1; +     +    if (res != page_length) return -1;    }    // call progress update callback with completion status | 
