Skip to content

Commit

Permalink
Code moved to sensor_helpers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
HThuren committed Mar 13, 2023
1 parent 4685d0b commit 82098b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/sensor_helpers.js
Expand Up @@ -76,7 +76,7 @@ export function sensor_status(sensors_detected, gps_fix_state) {

if (have_sensor(sensors_detected, "gps")) {
$(".gps", eSensorStatus).addClass("on");
if (gps_fix_state) {
if (gps_fix_state > 0) {
$(".gpsicon", eSensorStatus).removeClass("active");
$(".gpsicon", eSensorStatus).addClass("active_fix");
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/js/serial_backend.js
Expand Up @@ -348,7 +348,7 @@ function onOpenVirtual() {
processBoardInfo();

update_dataflash_global();
sensor_status(FC.CONFIG.activeSensors, FC.GPS_DATA.fix);
sensor_status(FC.CONFIG.activeSensors, 0);
updateTabList(FC.FEATURE_CONFIG.features);
}

Expand Down

0 comments on commit 82098b9

Please sign in to comment.