diff options
-rw-r--r-- | mdk-stage1/probing.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |