mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: Honor last manual divemode
Start the decompression schedule in the divemode of the last manual section. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
		
							parent
							
								
									09da42f819
								
							
						
					
					
						commit
						d018ceb852
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -735,7 +735,9 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i | |||
| 
 | ||||
| 	current_cylinder = get_cylinderid_at_time(dive, &dive->dc, sample->time); | ||||
| 	// FIXME: This needs a function to find the divemode at the end of the dive like in
 | ||||
| 	// divemode = get_current_divemode(&dive->dc, 1e5, &ev, &divemode);
 | ||||
| 	struct event *ev = NULL; | ||||
| 	divemode = UNDEF_COMP_TYPE; | ||||
| 	divemode = get_current_divemode(&dive->dc, bottom_time, &ev, &divemode); | ||||
| 	gas = dive->cylinder[current_cylinder].gasmix; | ||||
| 
 | ||||
| 	po2 = sample->setpoint.mbar; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue