diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-02 00:48:19 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-02 00:48:19 +0200 |
commit | 171b1678f2e5cfd59e3d93774f7db578420422a7 (patch) | |
tree | 74065b07dc620e8e22751563d548a140b17966e4 /src/drivers/blinkm | |
parent | 8c638d2addad0831b71428591cd76629c436ee05 (diff) | |
parent | a9fd5ed90ad67a8081aec3dd3c05034c3d64f81c (diff) | |
download | px4-firmware-171b1678f2e5cfd59e3d93774f7db578420422a7.tar.gz px4-firmware-171b1678f2e5cfd59e3d93774f7db578420422a7.tar.bz2 px4-firmware-171b1678f2e5cfd59e3d93774f7db578420422a7.zip |
Merge pull request #1108 from PX4/gnss_rework
Gnss rework
Diffstat (limited to 'src/drivers/blinkm')
-rw-r--r-- | src/drivers/blinkm/blinkm.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/drivers/blinkm/blinkm.cpp b/src/drivers/blinkm/blinkm.cpp index 98c491ce6..92e089217 100644 --- a/src/drivers/blinkm/blinkm.cpp +++ b/src/drivers/blinkm/blinkm.cpp @@ -559,13 +559,7 @@ BlinkM::led() } /* get number of used satellites in navigation */ - num_of_used_sats = 0; - - for(unsigned satloop=0; satloop<sizeof(vehicle_gps_position_raw.satellite_used); satloop++) { - if(vehicle_gps_position_raw.satellite_used[satloop] == 1) { - num_of_used_sats++; - } - } + num_of_used_sats = vehicle_gps_position_raw.satellites_used; if (new_data_vehicle_status || no_data_vehicle_status < 3) { if (num_of_cells == 0) { |