From f16f63548208e49c90d5dd562228f4e068877b9f Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sun, 3 Nov 2024 15:50:15 +0000 Subject: [PATCH] Fix for crap added by GitHub Copilot --- src/main/fc/fc_msp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/fc/fc_msp.c b/src/main/fc/fc_msp.c index c8eb95dd89..168d081712 100644 --- a/src/main/fc/fc_msp.c +++ b/src/main/fc/fc_msp.c @@ -2938,11 +2938,11 @@ static mspResult_e mspFcProcessInCommand(uint16_t cmdMSP, sbuf_t *src) rxLinkStatistics.uplinkTXPower = sbufReadU16(src); rxLinkStatistics.downlinkTXPower = sbufReadU16(src); - for (int i = 0; i < 4 - 1; i++) { + for (int i = 0; i < 4; i++) { rxLinkStatistics.band[i] = sbufReadU8(src); } - for (int i = 0; i < 6 - 1; i++) { + for (int i = 0; i < 6; i++) { rxLinkStatistics.mode[i] = sbufReadU8(src); } }