Skip to content

Commit 0f50d7c

Browse files
committed
[rotel] Thread name format updated
Related to #8216 Signed-off-by: Laurent Garnier <[email protected]>
1 parent c1f5125 commit 0f50d7c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

bundles/org.openhab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/RotelBindingConstants.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,4 @@ public class RotelBindingConstants {
151151

152152
// List of all properties
153153
public static final String PROPERTY_PROTOCOL = "protocol";
154-
155-
public static final String THREAD_NAME_PREFIX = "OH-" + BINDING_ID + "-";
156154
}

bundles/org.openhab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelReaderThread.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class RotelReaderThread extends Thread {
3838
* Constructor
3939
*
4040
* @param connector the object that should handle the received message
41+
* @param threadName the name of the thread
4142
*/
4243
public RotelReaderThread(RotelConnector connector, String threadName) {
4344
super(threadName);

bundles/org.openhab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class RotelHandler extends BaseThingHandler implements RotelMessageEventL
8787
private SerialPortManager serialPortManager;
8888

8989
private RotelConnector connector = new RotelSimuConnector(DEFAULT_MODEL, RotelProtocol.HEX, new HashMap<>(),
90-
THREAD_NAME_PREFIX);
90+
"OH-binding-rotel");
9191

9292
private int minVolume;
9393
private int maxVolume;
@@ -292,7 +292,7 @@ public void initialize() {
292292

293293
Map<RotelSource, String> sourcesLabels = new HashMap<>();
294294

295-
String readerThreadName = THREAD_NAME_PREFIX + getThing().getUID().getAsString();
295+
String readerThreadName = "OH-binding-" + getThing().getUID().getAsString();
296296

297297
connector = new RotelSimuConnector(rotelModel, rotelProtocol, sourcesLabels, readerThreadName);
298298

0 commit comments

Comments
 (0)