1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

PICO: jetiexbus -> function unused without GPS enabled.

This commit is contained in:
blckmn 2025-04-05 13:14:00 +11:00
parent 0b376bff50
commit 623eb5682d

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)
{ {