mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: fix typo that broke tank pressure tracking
Oops, that's embarrassing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									9cae50acab
								
							
						
					
					
						commit
						db4a003ef5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -226,7 +226,7 @@ static void update_cylinder_pressure(struct dive *d, int old_depth, int new_dept
 | 
				
			||||||
	mean_depth.mm = (old_depth + new_depth) / 2;
 | 
						mean_depth.mm = (old_depth + new_depth) / 2;
 | 
				
			||||||
	gas_used.mliter = depth_to_atm(mean_depth.mm, d) * sac / 60 * duration;
 | 
						gas_used.mliter = depth_to_atm(mean_depth.mm, d) * sac / 60 * duration;
 | 
				
			||||||
	cyl->gas_used.mliter += gas_used.mliter;
 | 
						cyl->gas_used.mliter += gas_used.mliter;
 | 
				
			||||||
	if (!cyl->type.size.mliter) {
 | 
						if (cyl->type.size.mliter) {
 | 
				
			||||||
		delta_p.mbar = gas_used.mliter * 1000.0 / cyl->type.size.mliter;
 | 
							delta_p.mbar = gas_used.mliter * 1000.0 / cyl->type.size.mliter;
 | 
				
			||||||
		cyl->end.mbar -= delta_p.mbar;
 | 
							cyl->end.mbar -= delta_p.mbar;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue