From 3e6bddc08cf3345236476f3e54f8f1b75b7f1c91 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 5 Jul 2011 15:37:11 +1000 Subject: [PATCH] Windows Resmed loader fixes --- SleepLib/loader_plugins/resmed_loader.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/SleepLib/loader_plugins/resmed_loader.cpp b/SleepLib/loader_plugins/resmed_loader.cpp index 423ebcf5..a2de2f39 100644 --- a/SleepLib/loader_plugins/resmed_loader.cpp +++ b/SleepLib/loader_plugins/resmed_loader.cpp @@ -63,22 +63,22 @@ bool EDFParser::Parse() return false; //patientident=QString::fromAscii(header.patientident,80); - //recordingident=QString::fromAscii(header.recordingident,80); // Serial number is in here.. - //int snp=recordingident.indexOf("SRN="); - char * idx=index(header.recordingident,'='); - idx++; + recordingident=QString::fromAscii(header.recordingident,80); // Serial number is in here.. + int snp=recordingident.indexOf("SRN="); serialnumber.clear(); + /*char * idx=index(header.recordingident,'='); + idx++; for (int i=0;i<16;++i) { if (*idx==0x20) break; serialnumber+=*idx; ++idx; - } + } */ - // for (int i=snp+4;i