mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Merge pull request #1590 from AndersHoglund/fix_zerodiv
Fixed zero div error.
This commit is contained in:
commit
5a0d91e12a
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ static void applyLedRssiLayer(bool updateNow, uint32_t *timer)
|
|||
static bool flash = false;
|
||||
|
||||
int state;
|
||||
int timeOffset = 0;
|
||||
int timeOffset = 1;
|
||||
|
||||
if (updateNow) {
|
||||
state = (rssi * 100) / 1023;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue