mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
dive: paren error in set point handling
This probably is a serious bug, found by cppcheck. Original code had paren's in probably the wrong place! Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fcc615a497
commit
7a42215067
1 changed files with 1 additions and 1 deletions
|
@ -933,7 +933,7 @@ void update_setpoint_events(struct divecomputer *dc)
|
||||||
next = get_next_event(ev, "gaschange");
|
next = get_next_event(ev, "gaschange");
|
||||||
}
|
}
|
||||||
fill_pressures(&pressures, calculate_depth_to_mbar(dc->sample[i].depth.mm, dc->surface_pressure, 0), gasmix ,0, OC);
|
fill_pressures(&pressures, calculate_depth_to_mbar(dc->sample[i].depth.mm, dc->surface_pressure, 0), gasmix ,0, OC);
|
||||||
if (abs(dc->sample[i].setpoint.mbar - (int)(1000 * pressures.o2) <= 50))
|
if (abs(dc->sample[i].setpoint.mbar - (int)(1000 * pressures.o2)) <= 50)
|
||||||
dc->sample[i].setpoint.mbar = 0;
|
dc->sample[i].setpoint.mbar = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue