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:
parent
4db2ece0df
commit
ae09caf0fe
2 changed files with 15 additions and 2 deletions
|
@ -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++);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue