mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Add debug mode and debug count to msp
This commit is contained in:
parent
09c98513b8
commit
0dd42ca9b1
1 changed files with 7 additions and 0 deletions
|
@ -1420,6 +1420,9 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
|||
sbufWriteU16(dst, gyroConfig()->gyroCalibrationDuration);
|
||||
sbufWriteU16(dst, gyroConfig()->gyro_offset_yaw);
|
||||
sbufWriteU8(dst, gyroConfig()->checkOverflow);
|
||||
//Added in MSP API 1.42
|
||||
sbufWriteU8(dst, systemConfig()->debug_mode);
|
||||
sbufWriteU8(dst, DEBUG_COUNT);
|
||||
|
||||
break;
|
||||
case MSP_FILTER_CONFIG :
|
||||
|
@ -2075,6 +2078,10 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
gyroConfigMutable()->gyro_offset_yaw = sbufReadU16(src);
|
||||
gyroConfigMutable()->checkOverflow = sbufReadU8(src);
|
||||
}
|
||||
if (sbufBytesRemaining(src) >= 1) {
|
||||
//Added in MSP API 1.42
|
||||
systemConfigMutable()->debug_mode = sbufReadU8(src);
|
||||
}
|
||||
|
||||
validateAndFixGyroConfig();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue