Skip to content

Commit

Permalink
power: whoops, that should be "==" not "!=".
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 3, 2017
1 parent c27dc51 commit b36755a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/power/linux/SDL_syspower.c
Expand Up @@ -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. */
}
}
Expand Down

0 comments on commit b36755a

Please sign in to comment.