mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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)) {
|
||||
case FLOAT:
|
||||
/* Just ignore zero values */
|
||||
if (!val.fp)
|
||||
break;
|
||||
switch (units.pressure) {
|
||||
case BAR:
|
||||
/* Assume mbar, but if it's really small, it's bar */
|
||||
|
|
Loading…
Reference in a new issue