mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 09:15:49 +03:00
Fix virtual OSD elements and OSD backwards compability bug (#3118)
This commit is contained in:
parent
64b710b074
commit
212b0bdb11
2 changed files with 4 additions and 6 deletions
|
@ -2790,16 +2790,14 @@ osd.initialize = function(callback) {
|
|||
}
|
||||
|
||||
// 2 way binding... sorta
|
||||
function updateOsdView() {
|
||||
async function updateOsdView() {
|
||||
|
||||
// ask for the OSD canvas data
|
||||
let p;
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45)) {
|
||||
p = MSP.promise(MSPCodes.MSP_OSD_CANVAS);
|
||||
await MSP.promise(MSPCodes.MSP_OSD_CANVAS);
|
||||
}
|
||||
|
||||
// ask for the OSD config data
|
||||
p.then(() => MSP.promise(MSPCodes.MSP_OSD_CONFIG))
|
||||
MSP.promise(MSPCodes.MSP_OSD_CONFIG)
|
||||
.then(info => {
|
||||
|
||||
OSD.chooseFields();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue