1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 08:15:19 +03:00

fix OSD bug, no HD variants in select

This commit is contained in:
error414 2024-02-20 18:04:41 +01:00
parent 4db2ece0df
commit ae09caf0fe
2 changed files with 15 additions and 2 deletions

View file

@ -1635,6 +1635,12 @@ var mspHelper = (function (gui) {
var index = 0;
if(data.byteLength == 0){
OSD_CUSTOM_ELEMENTS.settings.customElementsCount = 0;
OSD_CUSTOM_ELEMENTS.settings.customElementTextSize = 0;
return;
}
OSD_CUSTOM_ELEMENTS.settings.customElementsCount = data.getUint8(index++);
OSD_CUSTOM_ELEMENTS.settings.customElementTextSize = data.getUint8(index++);