Skip to content

Commit

Permalink
[yarpscope] fix for handling bottles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanthr05 authored and drdanz committed Mar 14, 2018
1 parent 166e6e1 commit 290545d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/yarpscope/plugin/plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 290545d

Please sign in to comment.