X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=flash%2Fmain.c;h=e474174377b1ac154d17cfaf96e46823f087e551;hb=105e266a05bdc2ffefacedc7ffe9e23201a417f9;hp=a443f95f6bb58b59460e3231a5a650d637763d6c;hpb=27cbdfaa6e2b18921c71e83967254463ff057355;p=fw%2Fstlink diff --git a/flash/main.c b/flash/main.c index a443f95..e474174 100644 --- a/flash/main.c +++ b/flash/main.c @@ -86,9 +86,14 @@ int main(int ac, char** av) if (o.devname != NULL) /* stlinkv1 */ { +#if CONFIG_USE_LIBSG static const int scsi_verbose = 2; sl = stlink_quirk_open(o.devname, scsi_verbose); if (sl == NULL) goto on_error; +#else + printf("not compiled for use with STLink/V1"); + goto on_error; +#endif } else /* stlinkv2 */ {