From 6cb565e3797f0a9e9311f6ffbe9ee2f4de7dbfe8 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 29 Jul 2024 18:42:24 +0800 Subject: [PATCH] BluetoothRadio: don't print unnecessary index --- src/modules/bluetoothradio/bluetoothradio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetoothradio/bluetoothradio.c b/src/modules/bluetoothradio/bluetoothradio.c index 956da3ea1..455c06df2 100644 --- a/src/modules/bluetoothradio/bluetoothradio.c +++ b/src/modules/bluetoothradio/bluetoothradio.c @@ -46,7 +46,7 @@ static void printDevice(FFBluetoothRadioOptions* options, const FFBluetoothRadio if(options->moduleArgs.outputFormat.length == 0) { - ffPrintLogoAndKey(key.chars, index, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY); + ffPrintLogoAndKey(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY); if (version) printf("Bluetooth %s%s (%s)\n", version, (radio->lmpVersion < 0 ? "+" : ""), radio->vendor.chars); @@ -55,7 +55,7 @@ static void printDevice(FFBluetoothRadioOptions* options, const FFBluetoothRadio } else { - FF_PRINT_FORMAT_CHECKED(key.chars, index, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_BLUETOOTHRADIO_NUM_FORMAT_ARGS, ((FFformatarg[]) { + FF_PRINT_FORMAT_CHECKED(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_BLUETOOTHRADIO_NUM_FORMAT_ARGS, ((FFformatarg[]) { {FF_FORMAT_ARG_TYPE_STRBUF, &radio->name, "name"}, {FF_FORMAT_ARG_TYPE_STRBUF, &radio->address, "address"}, {FF_FORMAT_ARG_TYPE_INT, &radio->lmpVersion, "lmp-version"},