Skip first 20 seconds of Ti and Te

This commit is contained in:
Phil Olynyk 2023-03-07 05:06:20 -05:00
parent b86b07df2c
commit 26d9a743d5

View File

@ -3392,7 +3392,8 @@ void ResmedLoader::ToTimeDelta(Session *sess, ResMedEDFInfo &edf, EDFSignal &es,
tt += rate * startpos;
}
// Likewise for the values that the device computes for us, but 20 seconds
if ((code == CPAP_MinuteVent) || (code == CPAP_RespRate) || (code == CPAP_TidalVolume)) {
if ((code == CPAP_MinuteVent) || (code == CPAP_RespRate) ||
(code == CPAP_TidalVolume) || (code == CPAP_Ti) || (code == CPAP_Te) ) {
startpos = 10; // Shave the first 20 seconds of computed data
tt += rate * startpos;
}