mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Silently ignore zero pressure
Don't complain about them, they're just missing values Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									9506c4bf0a
								
							
						
					
					
						commit
						a5e4c7ffd1
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -227,6 +227,9 @@ static void pressure(char *buffer, void *_press) | ||||||
| 
 | 
 | ||||||
| 	switch (integer_or_float(buffer, &val)) { | 	switch (integer_or_float(buffer, &val)) { | ||||||
| 	case FLOAT: | 	case FLOAT: | ||||||
|  | 		/* Just ignore zero values */ | ||||||
|  | 		if (!val.fp) | ||||||
|  | 			break; | ||||||
| 		switch (units.pressure) { | 		switch (units.pressure) { | ||||||
| 		case BAR: | 		case BAR: | ||||||
| 			/* Assume mbar, but if it's really small, it's bar */ | 			/* Assume mbar, but if it's really small, it's bar */ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue