From 3089fae6bd21e8ae2152fa6fa9622afc3c073b17 Mon Sep 17 00:00:00 2001 From: sgearhart Date: Sun, 3 Dec 2023 10:30:17 -0500 Subject: [PATCH] modified: viatom_loader.cpp - Changed "sig" (byte 0x00)to mean Viatom database version number --- oscar/SleepLib/loader_plugins/viatom_loader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/viatom_loader.cpp b/oscar/SleepLib/loader_plugins/viatom_loader.cpp index 9dbb6b66..b09940d1 100644 --- a/oscar/SleepLib/loader_plugins/viatom_loader.cpp +++ b/oscar/SleepLib/loader_plugins/viatom_loader.cpp @@ -285,12 +285,12 @@ bool ViatomFile::ParseHeader() int min = header[7]; int sec = header[8]; - switch (sig) { + switch (sig) { //Viatom database version number - Crimson Nape case 0x0003: - case 0x0005: // CheckMe O2 Max + case 0x0005: break; default: - qDebug() << m_file.fileName() << "invalid signature for Viatom data file" << sig; + qDebug() << m_file.fileName() << "Unrecognized DB version number in Viatom data file" << sig; return false; break; }