From 289d963ba544dc9be67c3f76af9f270ecc0b302d Mon Sep 17 00:00:00 2001 From: Mikaela Szekely Date: Thu, 2 Jun 2022 18:18:34 -0600 Subject: [PATCH] Complete the version string migration from 5e3cade, fixing HOSTED_BMP_ONLY --- src/platforms/hosted/bmp_serial.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/platforms/hosted/bmp_serial.c b/src/platforms/hosted/bmp_serial.c index 03ef66e2..1922ec07 100644 --- a/src/platforms/hosted/bmp_serial.c +++ b/src/platforms/hosted/bmp_serial.c @@ -233,7 +233,9 @@ int find_debuggers(BMP_CL_OPTIONS_t *cl_opts, bmp_info_t *info) struct dirent *dp; int i = 0; while ((dp = readdir(dir)) != NULL) { - if ((strstr(dp->d_name, BMP_IDSTRING)) && + if ((strstr(dp->d_name, BMP_IDSTRING_BLACKMAGIC) || + strstr(dp->d_name, BMP_IDSTRING_BLACKSPHERE) || + strstr(dp->d_name, BMP_IDSTRING_1BITSQUARED)) && (strstr(dp->d_name, "-if00"))) { i++; char type[256], version[256], serial[256]; @@ -266,7 +268,9 @@ int find_debuggers(BMP_CL_OPTIONS_t *cl_opts, bmp_info_t *info) dir = opendir(DEVICE_BY_ID); i = 0; while ((dp = readdir(dir)) != NULL) { - if ((strstr(dp->d_name, BMP_IDSTRING)) && + if ((strstr(dp->d_name, BMP_IDSTRING_BLACKMAGIC) || + strstr(dp->d_name, BMP_IDSTRING_BLACKSPHERE) || + strstr(dp->d_name, BMP_IDSTRING_1BITSQUARED)) && (strstr(dp->d_name, "-if00"))) { i++; char type[256], version[256], serial[256];