From 03a9f597a1916a67250e8a03fccbd770c588a7e7 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Sat, 18 May 2024 18:59:22 +1200 Subject: [PATCH] Fix inconsistent type error (#1427) 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 4352d226df..5dea0128db 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);