1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Merge pull request #1093 from iNavFlight/sonar-rework

Sonar - refactor the code to use detection and configuration like all other sensors
This commit is contained in:
Konstantin Sharlaimov 2017-01-30 19:32:50 +10:00 committed by GitHub
commit 688f90e2a2
16 changed files with 251 additions and 302 deletions

View file

@ -1160,7 +1160,11 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
#else
sbufWriteU8(dst, 0);
#endif
sbufWriteU8(dst, 0); // rangefinder hardware
#ifdef SONAR
sbufWriteU8(dst, rangefinderConfig()->rangefinder_hardware);
#else
sbufWriteU8(dst, 0);
#endif
sbufWriteU8(dst, 0); // optical flow hardware
break;