From 290545d37e59d5d8ae3f1c55df151c656b308152 Mon Sep 17 00:00:00 2001 From: Prashanth Ramadoss Date: Wed, 14 Mar 2018 15:09:17 +0100 Subject: [PATCH] [yarpscope] fix for handling bottles correctly --- src/yarpscope/plugin/plotter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/yarpscope/plugin/plotter.cpp b/src/yarpscope/plugin/plotter.cpp index 01612e5517f..15b8b9e06b4 100644 --- a/src/yarpscope/plugin/plotter.cpp +++ b/src/yarpscope/plugin/plotter.cpp @@ -178,10 +178,13 @@ void Plotter::onTimeout() b = graph->curr_connection->localPort->lastRead(); } if (!b) { - qDebug("No data received. Using previous values."); +// qDebug("No data received. Using previous values."); graph->appendPreviousValues(); } else { + if (b->size() == 1 && b->get(0).isList()) { + b = b->get(0).asList(); + } yarp::os::Stamp stmp; graph->curr_connection->localPort->getEnvelope(stmp);