diff --git a/tasks/task_autodetect.c b/tasks/task_autodetect.c index be79f38c95..fd593df1ea 100644 --- a/tasks/task_autodetect.c +++ b/tasks/task_autodetect.c @@ -124,8 +124,8 @@ static int input_autoconfigure_joypad_try_from_conf(config_file_t *conf, score += 2; else { - if ( !string_is_empty(ident) - && string_is_equal(params->name, ident)) + if ( !string_is_empty(ident) + && !string_is_equal(params->name, ident)) score += 1; }