Fixed sero div error.
This commit is contained in:
parent
14370426af
commit
b6e21fdee7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue