From 670157c5ec53370145a47b0273444b2c4d0d1d67 Mon Sep 17 00:00:00 2001 From: Petri Mattila Date: Wed, 27 Nov 2024 11:44:44 +0000 Subject: [PATCH] Nuke MSP changes --- src/main/msp/msp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/msp/msp.c b/src/main/msp/msp.c index df9a91f65..b876ff0ee 100644 --- a/src/main/msp/msp.c +++ b/src/main/msp/msp.c @@ -2021,6 +2021,7 @@ static mspResult_e mspFcProcessOutCommandWithArg(mspDescriptor_t srcDesc, int16_ switch (cmdMSP) { #ifdef USE_RPM_FILTER case MSP_RPM_FILTER: +#if 0 { const range_t axis_range = { 0, RPM_FILTER_AXIS_COUNT - 1 }; const range_t bank_range = { 0, RPM_FILTER_NOTCH_COUNT - 1 }; @@ -2031,6 +2032,11 @@ static mspResult_e mspFcProcessOutCommandWithArg(mspDescriptor_t srcDesc, int16_ sbufWriteU16(dst, rpmFilterConfig()->custom.notch_center[axis][bank]); sbufWriteU8(dst, rpmFilterConfig()->custom.notch_q[axis][bank]); } +#else + for (int i = 0; i < 16 * 6; i++) { + sbufWriteU8(dst, 0); + } +#endif break; #endif @@ -2570,6 +2576,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP, #ifdef USE_RPM_FILTER case MSP_SET_RPM_FILTER: +#if 0 { uint8_t axis = sbufReadU8(src); uint8_t bank = sbufReadU8(src); @@ -2582,6 +2589,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP, } validateAndFixRPMFilterConfig(); gyroInitFilters(); +#endif break; #endif