mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Convert get_gas_from_events to get_gas_at_time
This converts the get_gas_from_events to a get_gas_at_time function that
actually maps our events to what cylinder and thus gas we are breathing
at that time.
[Dirk Hohndel: fixed to actually use the gas that was looked up
(and make things compile)]
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9eeeba468a
commit
7806dbbd9e
3 changed files with 13 additions and 15 deletions
|
|
@ -15,7 +15,7 @@ extern void set_verbatim(bool verbatim);
|
|||
extern void set_display_runtime(bool display);
|
||||
extern void set_display_duration(bool display);
|
||||
extern void set_display_transitions(bool display);
|
||||
extern void get_gas_from_events(struct divecomputer *dc, duration_t time, struct gasmix *gas);
|
||||
extern void get_gas_at_time(struct dive *dive, struct divecomputer *dc, duration_t time, struct gasmix *gas);
|
||||
extern int get_gasidx(struct dive *dive, struct gasmix *mix);
|
||||
extern bool diveplan_empty(struct diveplan *diveplan);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue