mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
CF/BF - Fix OSD slave settings not being saved/reset.
This commit is contained in:
parent
c2898a4fd9
commit
b0e3da51ea
1 changed files with 15 additions and 1 deletions
|
@ -1354,7 +1354,21 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
||||||
{
|
{
|
||||||
UNUSED(cmdMSP);
|
UNUSED(cmdMSP);
|
||||||
UNUSED(src);
|
UNUSED(src);
|
||||||
return MSP_RESULT_ERROR;
|
|
||||||
|
switch(cmdMSP) {
|
||||||
|
case MSP_RESET_CONF:
|
||||||
|
resetEEPROM();
|
||||||
|
readEEPROM();
|
||||||
|
break;
|
||||||
|
case MSP_EEPROM_WRITE:
|
||||||
|
writeEEPROM();
|
||||||
|
readEEPROM();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// we do not know how to handle the (valid) message, indicate error MSP $M!
|
||||||
|
return MSP_RESULT_ERROR;
|
||||||
|
}
|
||||||
|
return MSP_RESULT_ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue