refactor: FLASH size optimisations for B&W (#4827)

This commit is contained in:
philmoz
2024-04-01 09:43:50 +10:00
committed by GitHub
parent 46f484e6e5
commit 6c5eada23a
36 changed files with 608 additions and 655 deletions
+4 -4
View File
@@ -99,12 +99,12 @@ void frskyDProcessPacket(uint8_t module, const uint8_t *packet, uint8_t len)
}
}
struct FrSkyDSensor {
PACK_NOT_SIMU(struct FrSkyDSensor {
const uint8_t id;
const TelemetryUnit unit;
const uint8_t prec;
const TelemetryUnit unit:6;
const uint8_t prec:2;
const char * name;
};
});
#define FS(id,name,unit,prec) {id,unit,prec,name}
+1 -1
View File
@@ -291,7 +291,7 @@ void sportProcessTelemetryPacketWithoutCrc(uint8_t module, uint8_t origin, const
}
else if (dataId == R9_PWR_ID) {
// convert 'dBm' to 'mW'
static const uint32_t r9pwrs[][2] = {{0, 1}, {5, 3}, {10, 10},
static const uint16_t r9pwrs[][2] = {{0, 1}, {5, 3}, {10, 10},
{13, 20}, {14, 25}, {20, 100},
{23, 200}, {27, 500}, {30, 1000}};
uint32_t dBm = SPORT_DATA_U8(packet);