From f49a30e8650d59f61734b0b6dd936f4d0309f5b9 Mon Sep 17 00:00:00 2001 From: Bluebie Date: Wed, 6 Feb 2013 10:17:55 +1100 Subject: Fixed assignment in conditional bug. RAW uploads work now maybe? Thanks to @benjie on digistump.com forums --- commandline/examples/micronucleus.c | 4 ++-- 1 file 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; -- cgit v1.2.3