mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	DLF: Import setpoint changes.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
		
							parent
							
								
									366ad82a98
								
							
						
					
					
						commit
						f0303802dd
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -3589,11 +3589,17 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
 | 
				
			||||||
			switch (ptr[4]) {
 | 
								switch (ptr[4]) {
 | 
				
			||||||
			case 1:
 | 
								case 1:
 | 
				
			||||||
				strcpy(cur_event.name, "Setpoint Manual");
 | 
									strcpy(cur_event.name, "Setpoint Manual");
 | 
				
			||||||
				// There is a setpoint value somewhere...
 | 
									cur_event.value = ptr[6];
 | 
				
			||||||
 | 
									sample_start();
 | 
				
			||||||
 | 
									cur_sample->setpoint.mbar = ptr[6] * 10;
 | 
				
			||||||
 | 
									sample_end();
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			case 2:
 | 
								case 2:
 | 
				
			||||||
				strcpy(cur_event.name, "Setpoint Auto");
 | 
									strcpy(cur_event.name, "Setpoint Auto");
 | 
				
			||||||
				// There is a setpoint value somewhere...
 | 
									cur_event.value = ptr[6];
 | 
				
			||||||
 | 
									sample_start();
 | 
				
			||||||
 | 
									cur_sample->setpoint.mbar = ptr[6] * 10;
 | 
				
			||||||
 | 
									sample_end();
 | 
				
			||||||
				switch (ptr[7]) {
 | 
									switch (ptr[7]) {
 | 
				
			||||||
				case 0:
 | 
									case 0:
 | 
				
			||||||
					strcat(cur_event.name, " Manual");
 | 
										strcat(cur_event.name, " Manual");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue