Cosmetics in a comment
This commit is contained in:
@@ -228,7 +228,7 @@ void sportProcessTelemetryPacketWithoutCrc(uint8_t origin, const uint8_t * packe
|
|||||||
data = 100 - SPORT_DATA_U8(packet);
|
data = 100 - SPORT_DATA_U8(packet);
|
||||||
}
|
}
|
||||||
else if (dataId == R9_PWR_ID) {
|
else if (dataId == R9_PWR_ID) {
|
||||||
// receive 'dBm' and show by 'mw'
|
// convert 'dBm' to 'mW'
|
||||||
static const uint32_t r9pwrs[][2] = {{0, 1}, {5, 3}, {10, 10}, {13, 20}, {14, 25}, {20, 100}, {23, 200}, {27, 500}, {30, 1000}};
|
static const uint32_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);
|
uint32_t dBm = SPORT_DATA_U8(packet);
|
||||||
for (auto & r9pwr : r9pwrs) {
|
for (auto & r9pwr : r9pwrs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user