power: whoops, that should be "==" not "!=".
authorRyan C. Gordon
Mon, 03 Jul 2017 16:45:12 -0400
changeset 111269dd391cb1923
parent 11125 79a9f639ce9a
child 11127 97c66d81b2c9
power: whoops, that should be "==" not "!=".
src/power/linux/SDL_syspower.c
     1.1 --- a/src/power/linux/SDL_syspower.c	Mon Jul 03 16:38:37 2017 -0400
     1.2 +++ b/src/power/linux/SDL_syspower.c	Mon Jul 03 16:45:12 2017 -0400
     1.3 @@ -465,7 +465,7 @@
     1.4             the system. Most system batteries don't list a scope at all; we
     1.5             assume it's a system battery if not specified. */
     1.6          if (read_power_file(base, name, "scope", str, sizeof (str))) {
     1.7 -            if (SDL_strcmp(str, "device\n") != 0) {
     1.8 +            if (SDL_strcmp(str, "device\n") == 0) {
     1.9                  continue;  /* skip external devices with their own batteries. */
    1.10              }
    1.11          }