Skip to content

Commit

Permalink
[rfxcom] Thread name format updated (openhab#8237)
Browse files Browse the repository at this point in the history
Related to openhab#8216

Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Bernhard <[email protected]>
  • Loading branch information
lolodomo authored and bern77 committed Aug 6, 2020
1 parent dc77517 commit 120c059
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,4 @@ public class RFXComBindingConstants {
put(PacketType.WIND, RFXComBindingConstants.THING_TYPE_WIND);
}
});

public static final String THREAD_NAME_PREFIX = "OH-" + BINDING_ID + "-";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 120c059

Please sign in to comment.