mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix ArrayStoreException (#15320)
Fixes #15313 Partially reverts #13967 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
e60446d305
commit
e9c03a5161
@ -47,7 +47,9 @@ public class BluetoothUtils {
|
||||
*/
|
||||
public static int[] toIntArray(byte[] value) {
|
||||
int[] ret = new int[value.length];
|
||||
System.arraycopy(value, 0, ret, 0, value.length);
|
||||
for (int i = 0; i < value.length; i++) {
|
||||
ret[i] = value[i];
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user