Battery (Linux): tidy

This commit is contained in:
Carter Li
2023-12-26 16:13:15 +08:00
parent 16d34b6933
commit 5a372882fa
2 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ void ffInitBatteryOptions(FFBatteryOptions* options)
options->temp = false;
#ifdef __linux__
ffStrbufInit(&options->dir);
ffStrbufInitStatic(&options->dir, "/sys/class/power_supply/");
#elif defined(_WIN32)
options->useSetupApi = false;
#endif