Skip to content

Commit

Permalink
Update micronucleus_lib.c:
Browse files Browse the repository at this point in the history
Result not always 64 - bad assumption that page size is always 64
  • Loading branch information
Bluebie committed Aug 29, 2013
1 parent b96d1ac commit bedfbdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commandline/library/micronucleus_lib.c
@@ -1,3 +1,4 @@

/*
Created: September 2012
by ihsan Kehribar <ihsan@kehribar.me>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bedfbdd

Please sign in to comment.