mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Added copy profile to another profile in PID Tuning tab
This commit is contained in:
parent
05426a3f7f
commit
d9183628b3
7 changed files with 209 additions and 4 deletions
|
@ -1137,6 +1137,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
case MSPCodes.MSP_SET_SENSOR_CONFIG:
|
||||
console.log('Sensor config parameters set');
|
||||
break;
|
||||
case MSPCodes.MSP_COPY_PROFILE:
|
||||
console.log('Copy profile');
|
||||
break;
|
||||
default:
|
||||
console.log('Unknown code detected: ' + code);
|
||||
} else {
|
||||
|
@ -1490,6 +1493,12 @@ MspHelper.prototype.crunch = function(code) {
|
|||
.push8(BLACKBOX.blackboxRateDenom);
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP_COPY_PROFILE:
|
||||
buffer.push8(COPY_PROFILE.type)
|
||||
.push8(COPY_PROFILE.dstProfile)
|
||||
.push8(COPY_PROFILE.srcProfile)
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue