Add check for min pressure equals zero to STR processing.

This commit is contained in:
Phil Olynyk 2022-01-07 19:25:56 -05:00
parent 2f975ea7e9
commit d6a925e456

View File

@ -1829,6 +1829,9 @@ bool ResmedLoader::ProcessSTRfiles(Machine *mach, QMap<QDate, STRFile> & STRmap,
if ((sig = str.lookupLabel("S.Tube"))) { if ((sig = str.lookupLabel("S.Tube"))) {
R.s_Tube = EventDataType(sig->dataArray[rec]) * sig->gain + sig->offset; R.s_Tube = EventDataType(sig->dataArray[rec]) * sig->gain + sig->offset;
} }
if ( R.min_pressure == 0 ) {
qDebug() << "Min Pressure is zero on" << date.toString();
}
#ifdef STR_DEBUG #ifdef STR_DEBUG
qDebug() << "Finished" << date.toString(); qDebug() << "Finished" << date.toString();
#endif #endif