mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 17:55:24 +03:00
Fix sonar to reflect datastruct has no default (#3731)
This commit is contained in:
parent
cde30199b9
commit
7d9db22939
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ setup.initialize = function (callback) {
|
|||
|
||||
if (FC.SENSOR_CONFIG_ACTIVE.sonar_hardware == 0xFF) {
|
||||
sensor_sonar_e.text(textNA);
|
||||
} else if (have_sensor(FC.CONFIG.activeSensors, "sonar") && FC.SENSOR_CONFIG_ACTIVE.sonar_hardware > 1) {
|
||||
} else if (have_sensor(FC.CONFIG.activeSensors, "sonar") && FC.SENSOR_CONFIG_ACTIVE.sonar_hardware > 0) {
|
||||
sensor_sonar_e.text(sonarElements[FC.SENSOR_CONFIG_ACTIVE.sonar_hardware]);
|
||||
} else {
|
||||
sensor_sonar_e.text(textDisabled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue