Skip to content

v0.5.5

Pre-release
Pre-release

Choose a tag to compare

@ilyakruchinin ilyakruchinin released this 30 Jul 14:04
3b6effa

Changes since v0.5.4

Bug fixes

  • MaskEvents undercount in STR.edfMaskEvents was set to the number of
    on/off pairs instead of the total number of on+off events. OSCAR divides
    MaskEvents by 2 to get the pair count, so the reported session count was
    half of what it should have been.
    (main/edf_gen.c)

  • Repeating -120 L/min flow spikes in OSCAR/SleepHQ — BLE notification
    drops (typically every ~10 minutes) triggered insertion of SNT_MISSING
    (INT16_MIN) sentinels into BRP flow/pressure data. During EDF conversion
    these were clamped to dig_min = -1000, which OSCAR scales by gain = 0.12
    (L/s→L/min), producing visible -120 L/min spikes. Changed BRP gap
    compensation to hold-previous-value (matching the existing SA2/PLD
    strategy). Gaps are typically 200–400 ms (<10 % of a breath cycle), so the
    held value is visually indistinguishable from real data. The AS11 native EDF
    never has missing BRP data, and OSCAR has no sentinel convention for
    breathing waveforms.
    (main/session_writer.c, main/edf_gen.c)