Fix error on servos page when servos not supported by the target.
parent
78d7afc029
commit
779af35d33
|
@ -870,7 +870,7 @@
|
|||
|
||||
|
||||
"servosFirmwareUpgradeRequired": {
|
||||
"message": "Servos requires firmware >= 1.10.0."
|
||||
"message": "Servos requires firmware >= 1.10.0. and target support."
|
||||
},
|
||||
"servosChangeDirection": {
|
||||
"message": "Change Direction in TX To Match"
|
||||
|
|
|
@ -43,7 +43,7 @@ TABS.servos.initialize = function (callback) {
|
|||
|
||||
function update_ui() {
|
||||
|
||||
if (semver.lt(CONFIG.apiVersion, "1.12.0")) {
|
||||
if (semver.lt(CONFIG.apiVersion, "1.12.0") || SERVO_CONFIG.length == 0) {
|
||||
|
||||
$(".tab-servos").removeClass("supported");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue