1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

Sonar initialisation cleanup - part 3

This commit is contained in:
Martin Budden 2016-05-19 14:20:05 +01:00
parent f384cb6005
commit 533d272845
19 changed files with 208 additions and 193 deletions

View file

@ -63,7 +63,7 @@
#include "sensors/boardalignment.h"
#include "sensors/sensors.h"
#include "sensors/battery.h"
#include "sensors/sonar.h"
#include "sensors/rangefinder.h"
#include "sensors/acceleration.h"
#include "sensors/barometer.h"
#include "sensors/compass.h"
@ -711,7 +711,7 @@ static bool processOutCommand(uint8_t cmdMSP)
case MSP_SONAR_ALTITUDE:
headSerialReply(4);
#if defined(SONAR)
serialize32(sonarGetLatestAltitude());
serialize32(rangefinderGetLatestAltitude());
#else
serialize32(0);
#endif