mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-15 20:35:23 +03:00
Refactor msp to modules (#3214)
* feat: refactor everything to modules * fix: a lot of circular deps fixes * feat: use vitest instead of karma
This commit is contained in:
parent
654dca2a19
commit
c086395def
82 changed files with 1660 additions and 1376 deletions
|
@ -2,7 +2,12 @@ import { i18n } from "../localization";
|
|||
import GUI from '../gui';
|
||||
import { reinitializeConnection } from "../serial_backend";
|
||||
import { mspHelper } from "../msp/MSPHelper";
|
||||
|
||||
import MSP from "../msp";
|
||||
import FC from "../fc";
|
||||
import MSPCodes from "../msp/MSPCodes";
|
||||
import adjustBoxNameIfPeripheralWithModeID from "../peripherals";
|
||||
import { API_VERSION_1_43, API_VERSION_1_44, API_VERSION_1_45 } from "../data_storage";
|
||||
import { gui_log } from "../gui_log";
|
||||
|
||||
const failsafe = {};
|
||||
|
||||
|
@ -366,7 +371,7 @@ failsafe.initialize = function (callback) {
|
|||
}
|
||||
|
||||
function reboot() {
|
||||
GUI.log(i18n.getMessage('configurationEepromSaved'));
|
||||
gui_log(i18n.getMessage('configurationEepromSaved'));
|
||||
|
||||
GUI.tab_switch_cleanup(function() {
|
||||
MSP.send_message(MSPCodes.MSP_SET_REBOOT, false, false, reinitializeConnection);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue