From 1d99b0c5d846834a8fb29788275b3e29a67f3cb1 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Sat, 14 Aug 2021 17:59:35 -0400 Subject: [PATCH] Added -Untested machine- code --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 89d3deb8..4e15e337 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -418,6 +418,16 @@ int ResmedLoader::Open(const QString & dirpath) } else { // Starting from new beginnings - new or purged qDebug() << "New machine or just purged"; p_profile->forceResmedPrefs(); + int modelNum = info.modelnumber.toInt(); + if ( modelNum >= 39000 ) { + if ( ! AS11TestedModels.contains(modelNum) ) { + QMessageBox::information(QApplication::activeWindow(), + QObject::tr("Machine Untested"), + QObject::tr("Your ResMed CPAP machine (Model %1) has not been tested yet.").arg(info.modelnumber) +"\n\n"+ + QObject::tr("It seems similar enough to other machines that it might work, but the developers would like a .zip copy of this machine's SD card to make sure it works with OSCAR.") + ,QMessageBox::Ok); + } + } mach = p_profile->CreateMachine( info ); } QDateTime ignoreBefore = p_profile->session->ignoreOlderSessionsDate();