Skip to content

Commit

Permalink
Nuke MSP changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Dec 18, 2024
1 parent 19e4970 commit 670157c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/msp/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -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

Expand Down Expand Up @@ -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);
Expand All @@ -2582,6 +2589,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
}
validateAndFixRPMFilterConfig();
gyroInitFilters();
#endif
break;
#endif

Expand Down

0 comments on commit 670157c

Please sign in to comment.