1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +03:00

Jetiexbus -> function unused without GPS enabled. (#14336)

This commit is contained in:
Jay Blackman 2025-04-09 03:25:14 +10:00 committed by GitHub
parent c55d7c5c31
commit d9f418dd06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,6 +285,7 @@ static void createExTelemetryTextMessage(uint8_t *exMessage, uint8_t messageID,
exMessage[exMessage[EXTEL_HEADER_TYPE_LEN] + EXTEL_CRC_LEN] = calcCRC8(&exMessage[EXTEL_HEADER_TYPE_LEN], exMessage[EXTEL_HEADER_TYPE_LEN]); exMessage[exMessage[EXTEL_HEADER_TYPE_LEN] + EXTEL_CRC_LEN] = calcCRC8(&exMessage[EXTEL_HEADER_TYPE_LEN], exMessage[EXTEL_HEADER_TYPE_LEN]);
} }
#ifdef USE_GPS
static uint32_t calcGpsDDMMmmm(int32_t value, bool isLong) static uint32_t calcGpsDDMMmmm(int32_t value, bool isLong)
{ {
uint32_t absValue = abs(value); uint32_t absValue = abs(value);
@ -299,6 +300,7 @@ static uint32_t calcGpsDDMMmmm(int32_t value, bool isLong)
return exGps.vInt; return exGps.vInt;
} }
#endif
static int32_t getSensorValue(uint8_t sensor) static int32_t getSensorValue(uint8_t sensor)
{ {