mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Record the cylinder idx on DLF gaschange
Use the new and fancy cylinder idx to record which cylinder we change to on the DLF import. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									4da7ab2431
								
							
						
					
					
						commit
						da42b0b79d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -2653,6 +2653,9 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) | |||
| 					cur_dive->cylinder[cur_cylinder_index].gasmix.o2.permille = ptr[6] * 10; | ||||
| 					cur_dive->cylinder[cur_cylinder_index].gasmix.he.permille = ptr[7] * 10; | ||||
| 					cylinder_end(); | ||||
| 					cur_event.gas.index = cur_cylinder_index; | ||||
| 				} else { | ||||
| 					cur_event.gas.index = i; | ||||
| 				} | ||||
| 				break; | ||||
| 			case 6: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue