mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
PowerAdapter (Linux): add support
This commit is contained in:
@@ -11,7 +11,7 @@ void ffPrintPowerAdapter(FFPowerAdapterOptions* options)
|
||||
{
|
||||
FF_LIST_AUTO_DESTROY results = ffListCreate(sizeof(FFPowerAdapterResult));
|
||||
|
||||
const char* error = ffDetectPowerAdapterImpl(&results);
|
||||
const char* error = ffDetectPowerAdapter(&results);
|
||||
|
||||
if (error)
|
||||
{
|
||||
@@ -99,7 +99,7 @@ void ffGeneratePowerAdapterJsonResult(FF_MAYBE_UNUSED FFPowerAdapterOptions* opt
|
||||
{
|
||||
FF_LIST_AUTO_DESTROY results = ffListCreate(sizeof(FFPowerAdapterResult));
|
||||
|
||||
const char* error = ffDetectPowerAdapterImpl(&results);
|
||||
const char* error = ffDetectPowerAdapter(&results);
|
||||
|
||||
if (error)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user