Do not update graphs/widgets if CSV is paused

This commit is contained in:
Alex Spataru 2021-02-08 10:42:00 -05:00
parent 0c50d2a24a
commit e9696a06cb
2 changed files with 4 additions and 2 deletions

View File

@ -212,7 +212,8 @@ void GraphProvider::updateValues()
return;
// Abort if not connected to device or reproducing CSV file
if (!IO::Manager::getInstance()->connected() && !CSV::Player::getInstance()->isOpen())
if (!IO::Manager::getInstance()->connected()
&& !CSV::Player::getInstance()->isPlaying())
return;
// Clear dataset & latest values list

View File

@ -417,7 +417,8 @@ void WidgetProvider::updateModels()
return;
// Abort if not connected to device or reproducing CSV file
if (!IO::Manager::getInstance()->connected() && !CSV::Player::getInstance()->isOpen())
if (!IO::Manager::getInstance()->connected()
&& !CSV::Player::getInstance()->isPlaying())
return;
// Clear current groups