Skip to content

Commit c34215a

Browse files
Merge pull request #2425 from error414/Adjust-ADSB-for-INAV-9
OSD element, fix condition for version
2 parents fe06cdb + 772357c commit c34215a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tabs/osd.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,10 +2614,7 @@ OSD.msp = {
26142614
result.push8(p.sidebar_scroll_arrows);
26152615
result.push8(p.units);
26162616
result.push8(p.stats_energy_unit);
2617-
2618-
if (semver.gte(FC.CONFIG.flightControllerVersion, "8.1.0")) {
2619-
result.push8(p.adsb_warning_style);
2620-
}
2617+
result.push8(p.adsb_warning_style);
26212618

26222619
return result;
26232620
},
@@ -2635,9 +2632,7 @@ OSD.msp = {
26352632
p.sidebar_scroll_arrows = prefs.readU8();
26362633
p.units = prefs.readU8();
26372634
p.stats_energy_unit = prefs.readU8();
2638-
if (semver.gte(FC.CONFIG.flightControllerVersion, "8.1.0")) {
2639-
p.adsb_warning_style = prefs.readU8();
2640-
}
2635+
p.adsb_warning_style = prefs.readU8();
26412636
},
26422637

26432638
encodeLayoutItem: function(layout, item, pos) {

0 commit comments

Comments
 (0)