Skip to content

Commit 7d9db22

Browse files
authored
Fix sonar to reflect datastruct has no default (#3731)
1 parent cde3019 commit 7d9db22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/tabs/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ setup.initialize = function (callback) {
407407

408408
if (FC.SENSOR_CONFIG_ACTIVE.sonar_hardware == 0xFF) {
409409
sensor_sonar_e.text(textNA);
410-
} else if (have_sensor(FC.CONFIG.activeSensors, "sonar") && FC.SENSOR_CONFIG_ACTIVE.sonar_hardware > 1) {
410+
} else if (have_sensor(FC.CONFIG.activeSensors, "sonar") && FC.SENSOR_CONFIG_ACTIVE.sonar_hardware > 0) {
411411
sensor_sonar_e.text(sonarElements[FC.SENSOR_CONFIG_ACTIVE.sonar_hardware]);
412412
} else {
413413
sensor_sonar_e.text(textDisabled);

0 commit comments

Comments
 (0)