1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Merge pull request #1590 from AndersHoglund/fix_zerodiv

Fixed zero div error.
This commit is contained in:
Anders Höglund 2016-11-17 22:05:12 +01:00 committed by GitHub
commit 5a0d91e12a

View file

@ -601,7 +601,7 @@ static void applyLedRssiLayer(bool updateNow, uint32_t *timer)
static bool flash = false; static bool flash = false;
int state; int state;
int timeOffset = 0; int timeOffset = 1;
if (updateNow) { if (updateNow) {
state = (rssi * 100) / 1023; state = (rssi * 100) / 1023;