mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 17:55:24 +03:00
Color for vtx ready status (#3422)
* VTX ready change if device get ready * minor change * removed class from translated string * Use of css way * Now use CSS style * reduce size of main.less * xVx
This commit is contained in:
parent
8d5533bbd0
commit
b523f0a0ac
8 changed files with 68 additions and 56 deletions
|
@ -192,7 +192,7 @@ setup.initialize = function (callback) {
|
|||
rssi_e = $('.rssi'),
|
||||
cputemp_e = $('.cpu-temp'),
|
||||
arming_disable_flags_e = $('.arming-disable-flags'),
|
||||
gpsFix_e = $('.gpsFix'),
|
||||
gpsFix_e = $('.GPS_info span.colorToggle'),
|
||||
gpsSats_e = $('.gpsSats'),
|
||||
gpsLat_e = $('.gpsLat'),
|
||||
gpsLon_e = $('.gpsLon'),
|
||||
|
@ -428,7 +428,9 @@ setup.initialize = function (callback) {
|
|||
|
||||
// GPS info is acquired in the background using update_live_status() in serial_backend.js
|
||||
|
||||
gpsFix_e.html((FC.GPS_DATA.fix) ? i18n.getMessage('gpsFixTrue') : i18n.getMessage('gpsFixFalse'));
|
||||
gpsFix_e.text(FC.GPS_DATA.fix ? i18n.getMessage('gpsFixTrue') : i18n.getMessage('gpsFixFalse'));
|
||||
gpsFix_e.toggleClass('ready', FC.GPS_DATA.fix != 0);
|
||||
|
||||
gpsSats_e.text(FC.GPS_DATA.numSat);
|
||||
gpsLat_e.text(`${(FC.GPS_DATA.lat / 10000000).toFixed(4)} deg`);
|
||||
gpsLon_e.text(`${(FC.GPS_DATA.lon / 10000000).toFixed(4)} deg`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue