mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Merge pull request #566 from basdelfos/copy-profile
Added copy profile to another profile in PID Tuning tab
This commit is contained in:
commit
e0438d2e8c
7 changed files with 215 additions and 4 deletions
|
@ -1138,6 +1138,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 {
|
||||
|
@ -1494,6 +1497,12 @@ MspHelper.prototype.crunch = function(code) {
|
|||
}
|
||||
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