Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18 from openconnectivity/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
javiguerra committed Dec 17, 2019
2 parents d2b8c67 + 99c65d3 commit 2ea2412
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/debian/otgc_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Constants
PROJECT_NAME="otgc"
VERSION="2.8.0"
VERSION="2.9.0"

program=$0

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>otgc</groupId>
<artifactId>otgc</artifactId>
<version>2.8.0</version>
<version>2.9.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,12 @@ public void onboardAllDevices(List<Device> devices) {
.subscribe(
deviceRole -> {
ownedDevice.setDeviceRole(deviceRole);
String deviceName = ownedDevice.getDeviceRole().toString() + ownedDevice.getDeviceId().substring(0, 5);
String deviceName;
if (ownedDevice.getDeviceInfo().getName() == null || ownedDevice.getDeviceInfo().getName().isEmpty()) {
deviceName = ownedDevice.getDeviceRole().toString() + "_" + ownedDevice.getDeviceId().substring(0, 5);
} else {
deviceName = ownedDevice.getDeviceInfo().getName() + "_" + ownedDevice.getDeviceId().substring(0, 5);
}
ownedDevice.getDeviceInfo().setName(deviceName);
setDeviceName(ownedDevice.getDeviceId(), deviceName);
deviceRoleMultiResponse.setValue(Response.success(ownedDevice));
Expand Down

0 comments on commit 2ea2412

Please sign in to comment.