From 26d9a743d581ad8ea2ed40d7f13d954bfe972054 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Tue, 7 Mar 2023 05:06:20 -0500 Subject: [PATCH] Skip first 20 seconds of Ti and Te --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index ae297793..ab7a23e0 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -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; }