Skip to content

Commit 3a6bd03

Browse files
authored
Merge pull request #128 from mikeller/fix/petrel2-analog-ppo2-userdata-corruption
shearwater: fix userdata corruption in predator parser samples loop
2 parents 6b3b483 + 86fc2b0 commit 3a6bd03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shearwater_predator_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ shearwater_predator_parser_samples_foreach (dc_parser_t *abstract, dc_sample_cal
12241224
if ((status & PPO2_EXTERNAL) == 0) {
12251225
double calculated_ppo2 = data[offset + pnf + 6] / 100.0;
12261226

1227-
if (userdata) {
1227+
if (!callback && userdata) {
12281228
struct dc_parser_sensor_calibration_t *out = (struct dc_parser_sensor_calibration_t *)userdata;
12291229

12301230
out->external_ppo2_used = true;

0 commit comments

Comments
 (0)