Commit 94789d32 authored by Don Gagne's avatar Don Gagne

Fix div by zero

parent c315ff4e
......@@ -448,10 +448,7 @@ void UASParameterCommsMgr::receivedParameterUpdate(int uas, int compId, int para
}
}
int progDiv = paramCount / 100;
if ((paramId % progDiv) == 0) {
emit parameterListProgress((float)paramId / (float)paramCount);
}
emit parameterListProgress((float)paramId / (float)paramCount);
if (paramId == paramCount) {
emit parameterListProgress(0.0f);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment