Skip to content

Commit b9f7745

Browse files
jefdriesenmikeller
authored andcommitted
Fix the ppO2 scaling factor
The ppO2 values are stored with a unit of 0.01 bar and not 0.1 bar.
1 parent 09051a7 commit b9f7745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/halcyon_symbios_parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ halcyon_symbios_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callbac
500500
for (unsigned int i = 0; i < 3; ++i) {
501501
unsigned int ppo2 = data[offset + 2 + i];
502502
sample.ppo2.sensor = i;
503-
sample.ppo2.value = ppo2 / 10.0;
503+
sample.ppo2.value = ppo2 / 100.0;
504504
if (callback) callback(DC_SAMPLE_PPO2, &sample, userdata);
505505
}
506506
} else if (type == ID_DECO) {
@@ -545,7 +545,7 @@ halcyon_symbios_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callbac
545545
for (unsigned int i = 0; i < 3; ++i) {
546546
unsigned int ppo2 = data[offset + 2 + i];
547547
sample.ppo2.sensor = i;
548-
sample.ppo2.value = ppo2 / 10.0;
548+
sample.ppo2.value = ppo2 / 100.0;
549549
if (callback) callback(DC_SAMPLE_PPO2, &sample, userdata);
550550
}
551551
unsigned int pressure = array_uint16_le (data + offset + 8);

0 commit comments

Comments
 (0)