diff --git a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java index 8776fa83c9dfa..e5b5beb82d423 100644 --- a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java +++ b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/RFXComBindingConstants.java @@ -242,6 +242,4 @@ public class RFXComBindingConstants { put(PacketType.WIND, RFXComBindingConstants.THING_TYPE_WIND); } }); - - public static final String THREAD_NAME_PREFIX = "OH-" + BINDING_ID + "-"; } diff --git a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java index d7a29297f05a7..fec7e4628c370 100644 --- a/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java +++ b/bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/handler/RFXComBridgeHandler.java @@ -31,7 +31,6 @@ import org.eclipse.smarthome.core.util.HexUtils; import org.eclipse.smarthome.io.transport.serial.SerialPortManager; import org.openhab.binding.rfxcom.internal.DeviceMessageListener; -import org.openhab.binding.rfxcom.internal.RFXComBindingConstants; import org.openhab.binding.rfxcom.internal.config.RFXComBridgeConfiguration; import org.openhab.binding.rfxcom.internal.connector.RFXComConnectorInterface; import org.openhab.binding.rfxcom.internal.connector.RFXComEventListener; @@ -170,7 +169,7 @@ private synchronized void connect() { logger.debug("Connecting to RFXCOM transceiver"); try { - String readerThreadName = RFXComBindingConstants.THREAD_NAME_PREFIX + getThing().getUID().getAsString(); + String readerThreadName = "OH-binding-" + getThing().getUID().getAsString(); if (configuration.serialPort != null) { if (connector == null) { connector = new RFXComSerialConnector(serialPortManager, readerThreadName);