mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
[elerotransmitterstick] Remove apache.commons (#14405)
Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
parent
46f9d5eab7
commit
8e4a2b14ac
@ -77,7 +77,6 @@ public class CommandUtil {
|
|||||||
return (byte) 0x24;
|
return (byte) 0x24;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unhandled command type " + command);
|
throw new IllegalArgumentException("Unhandled command type " + command);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.TooManyListenersException;
|
import java.util.TooManyListenersException;
|
||||||
|
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
|
||||||
import org.openhab.core.io.transport.serial.PortInUseException;
|
import org.openhab.core.io.transport.serial.PortInUseException;
|
||||||
import org.openhab.core.io.transport.serial.SerialPort;
|
import org.openhab.core.io.transport.serial.SerialPort;
|
||||||
import org.openhab.core.io.transport.serial.SerialPortEvent;
|
import org.openhab.core.io.transport.serial.SerialPortEvent;
|
||||||
@ -155,8 +154,13 @@ public class SerialConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.trace("buffer contains bytes: {}",
|
int j = 0;
|
||||||
HexUtils.bytesToHex(ArrayUtils.toPrimitive(bytes.toArray(new Byte[bytes.size()]))));
|
byte[] primeBytes = new byte[bytes.size()];
|
||||||
|
for (Byte b : bytes.toArray(new Byte[bytes.size()])) {
|
||||||
|
primeBytes[j++] = b.byteValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.trace("buffer contains bytes: {}", HexUtils.bytesToHex(primeBytes));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bytes.size() > 1) {
|
if (bytes.size() > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user