Merge pull request #7008 from jflyper/bfdev-jeti-telem-protect-GPS-related-funcitons

JETIEXBUS Telemetry: Conditional-ize GPS related functions with USE_GPS
This commit is contained in:
Michael Keller 2018-10-30 22:44:58 +13:00 committed by GitHub
commit ccf18fe6a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,7 @@ int32_t getSensorValue(uint8_t sensor)
break;
#endif
#ifdef USE_GPS
case EX_GPS_SATS:
return gpsSol.numSat;
break;
@ -374,6 +375,7 @@ int32_t getSensorValue(uint8_t sensor)
case EX_GPS_ALTITUDE:
return gpsSol.llh.altCm;
break;
#endif
case EX_GFORCE_X:
return (int16_t)(((float)acc.accADC[0] / acc.dev.acc_1G) * 1000);