summaryrefslogtreecommitdiffstats
path: root/commandline
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2013-12-17 12:47:19 -0800
committerAaron Stone <aaron@serendipity.cx>2013-12-17 13:23:50 -0800
commit4f0568d030fb5d8bcf90ff76c2b01360cc99ce07 (patch)
treee3c9fee63a94ab6e7751bd491876d9574304dd06 /commandline
parent3d9869732d07a606bf4121ead425dea2ea457363 (diff)
downloadmicronucleus-4f0568d030fb5d8bcf90ff76c2b01360cc99ce07.tar.gz
micronucleus-4f0568d030fb5d8bcf90ff76c2b01360cc99ce07.tar.bz2
micronucleus-4f0568d030fb5d8bcf90ff76c2b01360cc99ce07.zip
commandline: pretty sure this should be a comparison not an assignment
Diffstat (limited to 'commandline')
-rw-r--r--commandline/library/micronucleus_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commandline/library/micronucleus_lib.c b/commandline/library/micronucleus_lib.c
index 6bbf04c..47a3952 100644
--- a/commandline/library/micronucleus_lib.c
+++ b/commandline/library/micronucleus_lib.c
@@ -102,7 +102,7 @@ int micronucleus_eraseFlash(micronucleus* deviceHandle, micronucleus_callback pr
Assertion failed: (res >= 4), function micronucleus_connect, file library/micronucleus_lib.c, line 63.
*/
if (res == -5 || res == -34 || res == -84) {
- if (res = -34) {
+ if (res == -34) {
usb_close(deviceHandle->device);
deviceHandle->device = NULL;
}