From 8dc6c50bf46e5d6073e2c6af7fed5c2fc47283e4 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Sat, 18 May 2024 18:38:48 +1200 Subject: [PATCH] Fix inconsistent type error Signed-off-by: Chris Jackson --- .../com/zsmartsystems/zigbee/app/otaserver/ZigBeeOtaFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/app/otaserver/ZigBeeOtaFile.java b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/app/otaserver/ZigBeeOtaFile.java index 4352d226d..5dea0128d 100644 --- a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/app/otaserver/ZigBeeOtaFile.java +++ b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/app/otaserver/ZigBeeOtaFile.java @@ -280,7 +280,7 @@ private void readOtaFile() { // The length dictates the length of the rest of the data within the sub-element in bytes. It does not // include the size of the Tag ID or the Length Fields. - long tagLength = readUnsigned32(); + int tagLength = readUnsigned32(); logger.debug("Reading OTA image tag {}[{}] ({} bytes long)", tagType, String.format("%04X", tagId), tagLength);