Garmin: Fix gas change event parsing

The gas mixes are numbered from 0 and up and the gas change event uses
this number directly, so no need to subtract one.

Signed-off-by: Michael Andreen <michael@andreen.dev>
This commit is contained in:
Michael Andreen 2021-11-17 11:52:32 +01:00
parent b6df353752
commit 93fe31eef5

View File

@ -217,7 +217,7 @@ static void garmin_event(struct garmin_parser_t *garmin,
return;
case 57:
sample.gasmix = data - 1;
sample.gasmix = data;
garmin->callback(DC_SAMPLE_GASMIX, sample, garmin->userdata);
return;
}