Skip to content

Commit d2a8f9c

Browse files
committed
Use API version for OSD feature detection
1 parent 2f14c0c commit d2a8f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabs/osd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ OSD.chooseFields = function () {
432432
F.PID_YAW,
433433
F.POWER
434434
]);
435-
if (semver.gt(CONFIG.flightControllerVersion, "3.1.0")) {
435+
if (semver.gte(CONFIG.apiVersion, "1.32.0")) {
436436
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
437437
F.PID_RATE_PROFILE,
438438
F.BATTERY_WARNING

0 commit comments

Comments
 (0)