1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Fix galileo and home point once as per review

This commit is contained in:
Miguel Angel Mulero Martinez 2019-11-08 08:51:53 +01:00
parent a656dc2f5b
commit 77dfd8eaa8
3 changed files with 10 additions and 10 deletions

View file

@ -720,13 +720,13 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
gps_protocol_e.val(GPS_CONFIG.provider).change();
$('input[name="gps_ublox_galileo"]').change(function() {
GPS_CONFIG.ublox_use_galileo = $(this).is(':checked');
}).prop('checked', GPS_CONFIG.ublox_use_galileo).change();
GPS_CONFIG.ublox_use_galileo = $(this).is(':checked') ? 1 : 0;
}).prop('checked', GPS_CONFIG.ublox_use_galileo > 0).change();
$('.gps_home_once').toggle(semver.gte(CONFIG.apiVersion, "1.43.0"));
$('input[name="gps_home_once"]').change(function() {
GPS_CONFIG.home_point_once = $(this).is(':checked');
}).prop('checked', GPS_CONFIG.home_point_once).change();
GPS_CONFIG.home_point_once = $(this).is(':checked') ? 1 : 0;
}).prop('checked', GPS_CONFIG.home_point_once > 0).change();
$('input[name="gps_auto_baud"]').prop('checked', GPS_CONFIG.auto_baud == 1);
$('input[name="gps_auto_config"]').prop('checked', GPS_CONFIG.auto_config == 1);