Merge pull request #3031 from cleanflight/fix-osd-slave-settings (#5424)

CF/BF - Fix OSD slave settings not being saved/reset.
This commit is contained in:
Michael Keller 2018-03-15 02:39:26 +13:00 committed by GitHub
parent c2898a4fd9
commit b0e3da51ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -1354,8 +1354,22 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
{ {
UNUSED(cmdMSP); UNUSED(cmdMSP);
UNUSED(src); UNUSED(src);
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_ERROR;
} }
return MSP_RESULT_ACK;
}
#else #else