From b36755a3fc97b54792ad145af3768a8eeeb51735 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 3 Jul 2017 16:45:12 -0400 Subject: [PATCH] power: whoops, that should be "==" not "!=". --- src/power/linux/SDL_syspower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/power/linux/SDL_syspower.c b/src/power/linux/SDL_syspower.c index 4c1d9d38f..aa44c000c 100644 --- a/src/power/linux/SDL_syspower.c +++ b/src/power/linux/SDL_syspower.c @@ -465,7 +465,7 @@ SDL_GetPowerInfo_Linux_sys_class_power_supply(SDL_PowerState *state, int *second the system. Most system batteries don't list a scope at all; we assume it's a system battery if not specified. */ if (read_power_file(base, name, "scope", str, sizeof (str))) { - if (SDL_strcmp(str, "device\n") != 0) { + if (SDL_strcmp(str, "device\n") == 0) { continue; /* skip external devices with their own batteries. */ } }