diff options
| author | Jenna Fox <a@creativepony.com> | 2012-11-15 10:26:35 +1100 | 
|---|---|---|
| committer | Jenna Fox <a@creativepony.com> | 2012-11-15 10:26:35 +1100 | 
| commit | 493482bc2c9b7f95db4fe180221aa7af15e1da33 (patch) | |
| tree | 2a326cd8d82def6a4d97bf72eea9c00f441cc118 | |
| parent | 303f549ef8f858ac9dffc5c863166117c2c532a5 (diff) | |
| download | micronucleus-493482bc2c9b7f95db4fe180221aa7af15e1da33.tar.gz micronucleus-493482bc2c9b7f95db4fe180221aa7af15e1da33.tar.bz2 micronucleus-493482bc2c9b7f95db4fe180221aa7af15e1da33.zip | |
Slightly alter assert in micronucleus_lib.c
Maybe a little more future/past proof now?
| -rw-r--r-- | commandline/library/micronucleus_lib.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/commandline/library/micronucleus_lib.c b/commandline/library/micronucleus_lib.c index 1c3c179..561ddce 100644 --- a/commandline/library/micronucleus_lib.c +++ b/commandline/library/micronucleus_lib.c @@ -60,7 +60,7 @@ micronucleus* micronucleus_connect() {          // get nucleus info          unsigned char buffer[4];          int res = usb_control_msg(nucleus->device, 0xC0, 0, 0, 0, buffer, 4, MICRONUCLEUS_USB_TIMEOUT); -        assert(res == 4); +        assert(res >= 4);          nucleus->flash_size = (buffer[0]<<8) + buffer[1];          nucleus->page_size = buffer[2]; | 
