X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstlink-sg.c;h=b6ac4963bf7cf8b3ec1c3d8a19f6a9ab1894cc7b;hb=dbe5391bd1354d651cda7c10be3c4b601ea4cdc9;hp=7f0badcfe7b016ca9931e9604e9a7fff32af38a0;hpb=d019d3fc4f34297a78bf8c38c5a06053b2707862;p=fw%2Fstlink diff --git a/src/stlink-sg.c b/src/stlink-sg.c index 7f0badc..b6ac496 100644 --- a/src/stlink-sg.c +++ b/src/stlink-sg.c @@ -97,14 +97,6 @@ #define WLOG(format, args...) ugly_log(UWARN, LOG_TAG, format, ## args) #define fatal(format, args...) ugly_log(UFATAL, LOG_TAG, format, ## args) -// Suspends execution of the calling process for -// (at least) ms milliseconds. - -static void delay(int ms) { - //fprintf(stderr, "*** wait %d ms\n", ms); - usleep(1000 * ms); -} - static void clear_cdb(struct stlink_libsg *sl) { for (size_t i = 0; i < sizeof (sl->cdb_cmd_blk); i++) sl->cdb_cmd_blk[i] = 0;