Skip to content

Commit

Permalink
Merge pull request iNavFlight#5 from KiteAnton/gyro_status_fix
Browse files Browse the repository at this point in the history
Fix gyro reported as disabled when ACC is disabled
  • Loading branch information
skaman82 authored Jun 13, 2016
2 parents 2d7759a + 18c434d commit 64d0091
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/serial_backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ function sensor_status(sensors_detected) {
function have_sensor(sensors_detected, sensor_code) {
switch(sensor_code) {
case 'acc':
case 'gyro':
return bit_check(sensors_detected, 0);
case 'baro':
return bit_check(sensors_detected, 1);
Expand All @@ -380,6 +379,8 @@ function have_sensor(sensors_detected, sensor_code) {
return bit_check(sensors_detected, 3);
case 'sonar':
return bit_check(sensors_detected, 4);
case 'gyro':
return true; // Gyro status is never reported by FC
}
return false;
}
Expand Down

0 comments on commit 64d0091

Please sign in to comment.