From 346a665f193b60858614b3342d5166ca731054e5 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 12 Jun 2020 20:27:04 +0000 Subject: Do not ignore devices lacking capability --- mdk-stage1/probing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdk-stage1/probing.c') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index db99fb56f..32045ec69 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -670,7 +670,7 @@ void find_media(enum media_bus bus) read_attribute(path, buf); long caps = strtol(buf, NULL, 16); - if (!(caps & 0x0010)) { + if (caps && !(caps & 0x0010)) { log_message("Ignoring device %s (not up)", name); free(name); continue; -- cgit v1.2.1