diff --git a/doc/release/master.md b/doc/release/master.md index 338baaa18e2..4a2d6062e63 100644 --- a/doc/release/master.md +++ b/doc/release/master.md @@ -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 ------------ diff --git a/src/yarpbatterygui/main.cpp b/src/yarpbatterygui/main.cpp index 2afa87c0341..1e8075a28b3 100644 --- a/src/yarpbatterygui/main.cpp +++ b/src/yarpbatterygui/main.cpp @@ -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); @@ -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);