1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

Fix 'unknown code' messages in console log.

This commit is contained in:
Dominic Clifton 2015-01-07 20:10:30 +00:00
parent eda54f13db
commit 835e665017

View file

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