1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Merge pull request #6001 from mikeller/make_rssi_scalable

Make all RSSI sources scalable.
This commit is contained in:
Michael Keller 2018-05-31 10:59:32 +12:00 committed by GitHub
commit 07dfbd7b62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 38 additions and 28 deletions

View file

@ -386,6 +386,6 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {};
bool isArmingDisabled(void) { return false; }
uint16_t getRssi(void) { return 0; }
uint8_t getRssiPercent(void) { return 0; }
}

View file

@ -1015,6 +1015,8 @@ extern "C" {
uint16_t getRssi(void) { return rssi; }
uint8_t getRssiPercent(void) { return scaleRange(rssi, 0, RSSI_MAX_VALUE, 0, 100); }
uint16_t getCoreTemperatureCelsius(void) { return simulationCoreTemperature; }
bool isFlipOverAfterCrashMode(void) {