mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Set sample setpoint correctly
Forward the sample set-point setting as otherwise all ascents are planned on OC. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									767fd39ca0
								
							
						
					
					
						commit
						f22a708e27
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -333,6 +333,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas) | ||||||
| 		/* set po2 at beginning of this segment */ | 		/* set po2 at beginning of this segment */ | ||||||
| 		/* and keep it valid for last sample - where it likely doesn't matter */ | 		/* and keep it valid for last sample - where it likely doesn't matter */ | ||||||
| 		sample[-1].setpoint.mbar = po2; | 		sample[-1].setpoint.mbar = po2; | ||||||
|  | 		sample->setpoint.mbar = po2; | ||||||
| 		sample->time.seconds = lasttime = time; | 		sample->time.seconds = lasttime = time; | ||||||
| 		sample->depth.mm = lastdepth = depth; | 		sample->depth.mm = lastdepth = depth; | ||||||
| 		sample->manually_entered = dp->entered; | 		sample->manually_entered = dp->entered; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue