|
1 | | -'use strict'; |
| 1 | +// NOTE: this is a circular dependency, needs investigating |
| 2 | +import { bit_check, sensor_status, bit_set, update_dataflash_global } from "../serial_backend"; |
| 3 | +import { i18n } from "../localization"; |
| 4 | +import GUI from "../gui"; |
| 5 | +import FC from "../fc"; |
| 6 | +import semver from 'semver'; |
2 | 7 |
|
3 | 8 | // Used for LED_STRIP |
4 | 9 | const ledDirectionLetters = ['n', 'e', 's', 'w', 'u', 'd']; // in LSB bit order |
5 | | -const ledFunctionLetters = ['i', 'w', 'f', 'a', 't', 'r', 'c', 'g', 's', 'b', 'l']; // in LSB bit order |
6 | 10 | const ledBaseFunctionLetters = ['c', 'f', 'a', 'l', 's', 'g', 'r']; // in LSB bit |
7 | 11 | let ledOverlayLetters = ['t', 'o', 'b', 'v', 'i', 'w']; // in LSB bit |
8 | 12 |
|
@@ -2641,3 +2645,11 @@ MSP.SDCARD_STATE_FATAL = 1; |
2641 | 2645 | MSP.SDCARD_STATE_CARD_INIT = 2; |
2642 | 2646 | MSP.SDCARD_STATE_FS_INIT = 3; |
2643 | 2647 | MSP.SDCARD_STATE_READY = 4; |
| 2648 | + |
| 2649 | +let mspHelper; |
| 2650 | +// This is temporary, till things are moved |
| 2651 | +// to modules and every usage of this can create own |
| 2652 | +// instance or re-use existing where needed. |
| 2653 | +window.mspHelper = mspHelper = new MspHelper(); |
| 2654 | +export { mspHelper }; |
| 2655 | +export default MspHelper; |
0 commit comments