ao-tools: Add ao-flash-stm and ao-flash-lpc scripts
[fw/altos] / ao-tools / ao-usbload / ao-usbload.c
index 9e32b2b..860eb8a 100644 (file)
@@ -184,8 +184,10 @@ main (int argc, char **argv)
        } else
                usage(argv[0]);
 
-       if (ao_editaltos_find_symbols(file_symbols, num_file_symbols, ao_symbols, ao_num_symbols))
+       if (!ao_editaltos_find_symbols(file_symbols, num_file_symbols, ao_symbols, ao_num_symbols)) {
                fprintf(stderr, "Cannot find required symbols\n");
+               usage(argv[0]);
+       }
 
        {
                int     is_loader;