From 5c55760fd5d42992f513948b018fefabe862b3b8 Mon Sep 17 00:00:00 2001 From: Janice McLaughlin Date: Mon, 20 May 2019 14:46:03 -0700 Subject: [PATCH] Fix the limit for an invalid sample temperature In the EON Steel descriptor for the temperature field, the "nillable" value is -3000: int16,precision=2,nillable=-3000 So the missing equals sign is just a small oversight. --- src/suunto_eonsteel_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suunto_eonsteel_parser.c b/src/suunto_eonsteel_parser.c index 75b7091..33a6b3d 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -496,7 +496,7 @@ static void sample_temp(struct sample_data *info, short temp) { dc_sample_value_t sample = {0}; - if (temp < -3000) + if (temp <= -3000) return; sample.temperature = temp / 10.0;