From 1097cce6fa87a4eb26f380e982b8447a06448578 Mon Sep 17 00:00:00 2001 From: Steve Gearhart Date: Fri, 13 Oct 2023 23:57:09 +0000 Subject: [PATCH] Update 2 files - /oscar/SleepLib/loader_plugins/edfparser.h - /oscar/SleepLib/loader_plugins/resmed_loader.cpp --- oscar/SleepLib/loader_plugins/edfparser.h | 2 +- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/edfparser.h b/oscar/SleepLib/loader_plugins/edfparser.h index 6eadb51b..9cb8b645 100644 --- a/oscar/SleepLib/loader_plugins/edfparser.h +++ b/oscar/SleepLib/loader_plugins/edfparser.h @@ -27,7 +27,7 @@ const char AnnoDurMark = 21; const char AnnoEnd = 0; // EDFType is used by all the edf loaders - resmed and sleepstyle, so far -enum EDFType { EDF_UNKNOWN, EDF_BRP, EDF_PLD, EDF_SAD, EDF_EVE, EDF_CSL, EDF_AEV, EDF_RT }; +enum EDFType { EDF_UNKNOWN, EDF_BRP, EDF_PLD, EDF_SAD, EFF_SA2, EDF_EVE, EDF_CSL, EDF_AEV, EDF_RT }; /*! \struct EDFHeader \brief Represents the EDF+ header structure, used as a place holder while processing the text data. diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index b017e999..5534cdb9 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -2182,7 +2182,7 @@ EDFType lookupEDFType(const QString & filename) return EDF_BRP; } else if (text == "PLD") { return EDF_PLD; - } else if (text == "SAD") { + } else if ((text == "SAD") || (test == "SA2")){ return EDF_SAD; } else if (text == "CSL") { return EDF_CSL; @@ -2752,6 +2752,7 @@ void ResDayTask::run() loader->LoadPLD(sess, fullpath); break; case EDF_SAD: + case EDF_SA2: loader->LoadSAD(sess, fullpath); break; case EDF_EVE: