Skip to content

Commit 4534f18

Browse files
committed
Battery: don't print index in multi-battery device
1 parent f98e6c9 commit 4534f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/battery/battery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void printBattery(FFBatteryOptions* options, FFBatteryResult* result, uin
4141

4242
if(options->moduleArgs.outputFormat.length == 0)
4343
{
44-
ffPrintLogoAndKey(key.chars, index, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY);
44+
ffPrintLogoAndKey(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY);
4545

4646
FF_STRBUF_AUTO_DESTROY str = ffStrbufCreate();
4747
bool showStatus =
@@ -100,7 +100,7 @@ static void printBattery(FFBatteryOptions* options, FFBatteryResult* result, uin
100100
ffPercentAppendBar(&capacityBar, result->capacity, options->percent, &options->moduleArgs);
101101
FF_STRBUF_AUTO_DESTROY tempStr = ffStrbufCreate();
102102
ffTempsAppendNum(result->temperature, &tempStr, options->tempConfig, &options->moduleArgs);
103-
FF_PRINT_FORMAT_CHECKED(key.chars, index, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_BATTERY_NUM_FORMAT_ARGS, ((FFformatarg[]) {
103+
FF_PRINT_FORMAT_CHECKED(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_BATTERY_NUM_FORMAT_ARGS, ((FFformatarg[]) {
104104
FF_FORMAT_ARG(result->manufacturer, "manufacturer"),
105105
FF_FORMAT_ARG(result->modelName, "model-name"),
106106
FF_FORMAT_ARG(result->technology, "technology"),

0 commit comments

Comments
 (0)