battery: Fix Linux typo.

Remember to check on Linux before doing a release you spazz!!!
This commit is contained in:
Alastair Poole 2020-08-23 17:56:48 +01:00
parent f7b3f09aff
commit 9803a904ea
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ _battery_state_get(power_t *power)
for (int i = 0; i < power->battery_count; i++) {
naming = NULL;
path = strsli_printf("/sys/class/power_suppy/%s", power->batteries[i]->name);
path = strsli_printf("/sys/class/power_supply/%s", power->batteries[i]->name);
if (((stat(path, &st) < 0)) || (S_ISLNK(st.st_mode)) || (!S_ISDIR(st.st_mode)))
continue;