[zb4osgi-changeset] [scm] ZigBee 4 OSGi repository change: r900 - /projects/zb4osgi/sandbox/giancarlo.riolo/zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java

scm-notify at zb4osgi.aaloa.org scm-notify at zb4osgi.aaloa.org
Tue Dec 3 16:45:10 CET 2013


Author: giancarlo.riolo
Date: Tue Dec  3 16:45:09 2013
New Revision: 900

Log:
Issue rev #229 resolved. 

Modified:
    projects/zb4osgi/sandbox/giancarlo.riolo/zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java

Modified: projects/zb4osgi/sandbox/giancarlo.riolo/zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java
==============================================================================
--- projects/zb4osgi/sandbox/giancarlo.riolo/zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java (original)
+++ projects/zb4osgi/sandbox/giancarlo.riolo/zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java Tue Dec  3 16:45:09 2013
@@ -160,6 +160,7 @@
 
 		float result = ByteBuffer.wrap(payload, index, ZigBeeType.SemiPrecision.getLength())
 				.order(ByteOrder.LITTLE_ENDIAN).getFloat();
+		index += 2;
 		return result;
 
 	}
@@ -168,6 +169,7 @@
 
 		float result = ByteBuffer.wrap(payload, index, ZigBeeType.SinglePrecision.getLength())
 				.order(ByteOrder.LITTLE_ENDIAN).getFloat();
+		index += 4;
 		return result;
 
 	}
@@ -176,6 +178,7 @@
 
 		float result = ByteBuffer.wrap(payload, index, ZigBeeType.DoublePrecision.getLength())
 				.order(ByteOrder.LITTLE_ENDIAN).getFloat();
+		index += 8;
 		return result;
 
 	}




More information about the Commit mailing list