diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2022-10-01 21:56:53 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2022-10-01 21:56:53 +0300 |
commit | d14b3279a405c3fc51f4639da6c0c7751ff6512c (patch) | |
tree | 9dd13f4ad1dcd39a0cdce4defd5cdda9d552ed33 | |
parent | fbf56ac3b0c5f391b20f7e9a495a1362c78c6799 (diff) |
NMEA deprecation warning
-rwxr-xr-x | _locales/en/messages.json | 3 | ||||
-rw-r--r-- | tabs/gps.html | 2 | ||||
-rw-r--r-- | tabs/gps.js | 6 |
3 files changed, 10 insertions, 1 deletions
diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 3bfd2856..e3d2e7f5 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -4340,5 +4340,8 @@ }, "throttle_scale_help": { "message": "Allow to limit effective power fed to the motors. Throttle Scale 1 mean there is no power limiting. Throttle Scale 0.5 means throttle position will be cut in half before passed to the motors." + }, + "nmeaWarning": { + "message": "NMEA protocol is deprecated and might be removed in the future. Please use UBLOX or UBLOX7 protocol instead." } } diff --git a/tabs/gps.html b/tabs/gps.html index 15c84190..b8493250 100644 --- a/tabs/gps.html +++ b/tabs/gps.html @@ -20,7 +20,7 @@ <label for="feature-7"><span data-i18n="featureGPS"></span></label> <div for="feature-7" class="helpicon cf_tip" data-i18n_title="featureGPSTip"></div> </div> - + <div id="nmeaWarning" data-i18n="nmeaWarning" class="warning-box"></div> <div class="select"> <select id="gps_protocol" class="gps_protocol"> <!-- list generated here --> diff --git a/tabs/gps.js b/tabs/gps.js index 0d103ea8..7254369c 100644 --- a/tabs/gps.js +++ b/tabs/gps.js @@ -76,9 +76,15 @@ TABS.gps.initialize = function (callback) { gps_protocol_e.change(function () { MISC.gps_type = parseInt($(this).val()); + if (MISC.gps_type == 0) { + $('#nmeaWarning').show(); + } else { + $('#nmeaWarning').hide(); + } }); gps_protocol_e.val(MISC.gps_type); + gps_protocol_e.change(); var gps_ubx_sbas_e = $('#gps_ubx_sbas'); for (i = 0; i < gpsSbas.length; i++) { |