Fix error on servos page when servos not supported by the target.

10.3.x-maintenance
Dominic Clifton 2015-12-18 14:48:08 +01:00
parent 78d7afc029
commit 779af35d33
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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;