1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 22:05:13 +03:00

Cleaned up configuration tab.

This commit is contained in:
Michael Keller 2017-01-13 20:47:52 +13:00
parent 9c50885f69
commit 847b7ef12b
7 changed files with 73 additions and 82 deletions

View file

@ -205,7 +205,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
}
break;
case MSPCodes.MSP_MISC: // 22 bytes
MISC.midrc = data.readU16();
RX_CONFIG.midrc = data.readU16();
MISC.minthrottle = data.readU16(); // 0-2000
MISC.maxthrottle = data.readU16(); // 0-2000
MISC.mincommand = data.readU16(); // 0-2000
@ -1029,7 +1029,7 @@ MspHelper.prototype.crunch = function(code) {
buffer.push16(FC_CONFIG.loopTime);
break;
case MSPCodes.MSP_SET_MISC:
buffer.push16(MISC.midrc)
buffer.push16(RX_CONFIG.midrc)
.push16(MISC.minthrottle)
.push16(MISC.maxthrottle)
.push16(MISC.mincommand)