mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:03:24 +00:00
Temperature 0x7F appears to mean no reading
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
6cfbe10bc3
commit
b28e3db7f1
1 changed files with 3 additions and 1 deletions
|
@ -474,8 +474,10 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
|
|||
float *temp = (float *)&(sampleBlob[i * block_size + 11]);
|
||||
cur_sample->temperature.mkelvin = C_to_mkelvin(*temp);
|
||||
} else {
|
||||
if ((sampleBlob[i * block_size + 11]) != 0x7F) {
|
||||
cur_sample->temperature.mkelvin = C_to_mkelvin(sampleBlob[i * block_size + 11]);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Limit cylinder pressures to somewhat sensible values
|
||||
|
|
Loading…
Add table
Reference in a new issue