From 5323a56186bb5ffd5d9503a9add175317598f132 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Thu, 24 Jun 2021 12:13:21 -0400 Subject: [PATCH] Update to use SleepLib's edfParser --- anotDump.pro | 4 +++- anotDump/main.cpp | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/anotDump.pro b/anotDump.pro index 1d671af5..95affd6e 100644 --- a/anotDump.pro +++ b/anotDump.pro @@ -12,6 +12,8 @@ CONFIG -= debug_and_release QT += core widgets +DEFINES+=DUMPSTR + TARGET = anotDump TEMPLATE = app @@ -27,6 +29,6 @@ SOURCES += \ dumpSTR/edfparser.cpp \ HEADERS += \ - dumpSTR/common.h \ + dumpSTR/SleepLib/common.h \ dumpSTR/edfparser.h \ diff --git a/anotDump/main.cpp b/anotDump/main.cpp index de661796..89c563e0 100644 --- a/anotDump/main.cpp +++ b/anotDump/main.cpp @@ -81,9 +81,14 @@ int main(int argc, char *argv[]) { } EDFInfo edf; - QByteArray * buffer = edf.Open(filename); - if ( ! edf.Parse(buffer) ) - exit(-1); + if ( ! edf.Open(filename) ) { + qDebug() << "Failed to open" << filename; + exit(-1); + } + if ( ! edf.Parse() ) { + qDebug() << "Parsing failed on" << filename; + exit(-1); + } QDate d2 = edf.edfHdr.startdate_orig.date(); if (d2.year() < 2000) {