mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
[MSP] Use MSP2_COMMON[_SET]_SERIAL_CONFIG for configuring ports
Configurator side of https://github.com/betaflight/betaflight/pull/9332
This commit is contained in:
parent
9278e8ed77
commit
2defc901a9
8 changed files with 306 additions and 111 deletions
|
@ -35,7 +35,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
}
|
||||
|
||||
function load_serial_config() {
|
||||
MSP.send_message(MSPCodes.MSP_CF_SERIAL_CONFIG, false, false, load_board_alignment_config);
|
||||
mspHelper.loadSerialConfig(load_board_alignment_config);
|
||||
}
|
||||
|
||||
function load_board_alignment_config() {
|
||||
|
@ -1210,7 +1210,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
|
||||
function save_serial_config() {
|
||||
var next_callback = save_feature_config;
|
||||
MSP.send_message(MSPCodes.MSP_SET_CF_SERIAL_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_CF_SERIAL_CONFIG), false, next_callback);
|
||||
mspHelper.sendSerialConfig(next_callback);
|
||||
}
|
||||
|
||||
function save_feature_config() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue