Fix 'unknown code' messages in console log.

10.3.x-maintenance
Dominic Clifton 2015-01-07 20:10:30 +00:00
parent eda54f13db
commit 835e665017
1 changed files with 5 additions and 1 deletions

View File

@ -482,7 +482,7 @@ var MSP = {
break;
case MSP_codes.MSP_SET_BF_CONFIG:
break;
case MSP_codes.MSP_REBOOT:
case MSP_codes.MSP_SET_REBOOT:
console.log('Reboot request accepted');
break;
@ -563,6 +563,10 @@ var MSP = {
offset+= 4;
break;
case MSP_codes.MSP_SET_CF_SERIAL_CONFIG:
console.log('Serial config saved');
break;
case MSP_codes.MSP_MODE_RANGES:
MODE_RANGES = []; // empty the array as new data is coming in