From 85512761eab573cfb6adf85dd3b7765679486c27 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Sun, 25 Jul 2021 16:38:24 -0400 Subject: [PATCH] Add test for FLAG to clean up debug in updatesummary --- oscar/SleepLib/session.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/session.cpp b/oscar/SleepLib/session.cpp index 1f285cb8..cc481f36 100644 --- a/oscar/SleepLib/session.cpp +++ b/oscar/SleepLib/session.cpp @@ -1139,7 +1139,14 @@ void Session::updateCountSummary(ChannelID code) } } - if (valsum.size() == 0) { + if ( valsum.size() == 0) { + using namespace schema; + Channel *ch_p = channel.channels[code]; + if ( ! ch_p->isNull() ) { + if ( ch_p->type() == FLAG ) + return; + qDebug() << "No valuesummary for channel " << ch_p->label(); + } qDebug() << "No valuesummary for channel (hex)" << QString::number(code, 16); return; }