Skip to content

Commit

Permalink
yarpbatterygui now compatible with battery_nwc_yarp
Browse files Browse the repository at this point in the history
  • Loading branch information
elandini84 committed Apr 24, 2024
1 parent 93ac24d commit 6b289e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/release/master.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Fixes

* Configuration files installed by the `yarp_configure_plugins_installation` CMake macro are now relocatable (https://github.com/robotology/yarp/issues/2445, ).
* Improved `ffmpeg` port monitor to allow using different couples of coders/decodes
* `yarpbatterygui` now compatible with battery_nwc_yarp.

New Features
------------
Expand Down
4 changes: 2 additions & 2 deletions src/yarpbatterygui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int main(int argc, char *argv[])
bool b;
do
{
sprintf(pname, "/batteryMonitor%d:i", trial);
sprintf(pname, "/batteryMonitor%d", trial);
b = yarp::os::Network::exists(pname);
trial++;
} while (b == true);
Expand All @@ -110,7 +110,7 @@ int main(int argc, char *argv[])
yInfo() << "Using local port:" << localPort;

yarp::os::Property options;
options.put("device", "batteryClient");
options.put("device", "battery_nwc_yarp");
options.put("local", localPort);
options.put("remote", remotePort);

Expand Down

0 comments on commit 6b289e2

Please sign in to comment.