code cleanup: use gasmix_air for zero initialized gas
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c81693d023
commit
247194e839
@ -264,7 +264,7 @@ enum divemode_t get_current_divemode(const struct divecomputer *dc, int time, co
|
||||
|
||||
struct gasmix get_gasmix_from_event(const struct dive *dive, const struct event *ev)
|
||||
{
|
||||
struct gasmix dummy = { 0 };
|
||||
struct gasmix dummy = gasmix_air;
|
||||
if (ev && event_is_gaschange(ev)) {
|
||||
int index = ev->gas.index;
|
||||
if (index >= 0 && index < dive->cylinders.nr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user