From eee662f188642941bcfec826daf8f825734845c4 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Sun, 22 Oct 2023 03:47:49 +0100 Subject: [PATCH] Fix click offsets for fastpair and swiftpair --nobuild --- applications/external/ble_spam/protocols/fastpair.c | 2 +- applications/external/ble_spam/protocols/swiftpair.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/external/ble_spam/protocols/fastpair.c b/applications/external/ble_spam/protocols/fastpair.c index a5caf80cc..1e7c2920c 100644 --- a/applications/external/ble_spam/protocols/fastpair.c +++ b/applications/external/ble_spam/protocols/fastpair.c @@ -147,7 +147,7 @@ static void fastpair_extra_config(Ctx* ctx) { static uint8_t fastpair_config_count(const ProtocolCfg* _cfg) { UNUSED(_cfg); - return ConfigCOUNT; + return ConfigCOUNT - ConfigExtraStart - 1; } const Protocol protocol_fastpair = { diff --git a/applications/external/ble_spam/protocols/swiftpair.c b/applications/external/ble_spam/protocols/swiftpair.c index fc21f1778..b204f8eef 100644 --- a/applications/external/ble_spam/protocols/swiftpair.c +++ b/applications/external/ble_spam/protocols/swiftpair.c @@ -81,7 +81,7 @@ static void swiftpair_extra_config(Ctx* ctx) { static uint8_t swiftpair_config_count(const ProtocolCfg* _cfg) { UNUSED(_cfg); - return ConfigCOUNT; + return ConfigCOUNT - ConfigExtraStart - 1; } const Protocol protocol_swiftpair = {