diff options
author | Bluebie <a@creativepony.com> | 2013-02-06 10:17:55 +1100 |
---|---|---|
committer | Bluebie <a@creativepony.com> | 2013-02-06 10:17:55 +1100 |
commit | f49a30e8650d59f61734b0b6dd936f4d0309f5b9 (patch) | |
tree | 6018fe6755bee663d4a94337bf64d9ae543f02a0 /commandline/examples | |
parent | 5408e2a1217c1df6ff0d0364077a67e1e7e881aa (diff) | |
download | micronucleus-f49a30e8650d59f61734b0b6dd936f4d0309f5b9.tar.gz micronucleus-f49a30e8650d59f61734b0b6dd936f4d0309f5b9.tar.bz2 micronucleus-f49a30e8650d59f61734b0b6dd936f4d0309f5b9.zip |
Fixed assignment in conditional bug. RAW uploads work now maybe? Thanks to @benjie on digistump.com forums
Diffstat (limited to 'commandline/examples')
-rw-r--r-- | commandline/examples/micronucleus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commandline/examples/micronucleus.c b/commandline/examples/micronucleus.c index 4cab97a..2467b7a 100644 --- a/commandline/examples/micronucleus.c +++ b/commandline/examples/micronucleus.c @@ -152,12 +152,12 @@ int main(int argc, char **argv) { memset(dataBuffer, 0xFF, sizeof(dataBuffer)); int startAddress = 1, endAddress = 0; - if (file_type = FILE_TYPE_INTEL_HEX) { + if (file_type == FILE_TYPE_INTEL_HEX) { if (parseIntelHex(file, dataBuffer, &startAddress, &endAddress)) { printf("> Error loading or parsing hex file.\n"); return EXIT_FAILURE; } - } else if (FILE_TYPE_RAW) { + } else if (file_type == FILE_TYPE_RAW) { if (parseRaw(file, dataBuffer, &startAddress, &endAddress)) { printf("> Error loading raw file.\n"); return EXIT_FAILURE; |