Skip to content

Commit e8efe9b

Browse files
jefdriesenmikeller
authored andcommitted
Fix the ppO2 sensor index
The code used the wrong loop variable as the ppO2 sensor index.
1 parent 644b7d7 commit e8efe9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hw_ostc_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ hw_ostc_parser_internal_foreach (hw_ostc_parser_t *parser, dc_sample_callback_t
12241224
}
12251225
if (count) {
12261226
for (unsigned int j = 0; j < 3; ++j) {
1227-
sample.ppo2.sensor = i;
1227+
sample.ppo2.sensor = j;
12281228
sample.ppo2.value = ppo2[j] / 100.0;
12291229
if (callback) callback (DC_SAMPLE_PPO2, &sample, userdata);
12301230
}

0 commit comments

Comments
 (0)