Conditionalize GPS related functions with USE_GPS

This commit is contained in:
jflyper 2018-10-29 10:16:30 +09:00
parent c677b1c19c
commit 6c8f8138d9
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);