diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/import-suunto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/import-suunto.c b/core/import-suunto.c index e5d6c8c87..86298e722 100644 --- a/core/import-suunto.c +++ b/core/import-suunto.c @@ -474,7 +474,9 @@ 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 { - cur_sample->temperature.mkelvin = C_to_mkelvin(sampleBlob[i * block_size + 11]); + if ((sampleBlob[i * block_size + 11]) != 0x7F) { + cur_sample->temperature.mkelvin = C_to_mkelvin(sampleBlob[i * block_size + 11]); + } } /* |