1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Fixed sero div error.

This commit is contained in:
Anders Hoglund 2016-11-17 21:44:53 +01:00
parent 14370426af
commit b6e21fdee7

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;