Commit 78302645 authored by Hynek Syrovátka's avatar Hynek Syrovátka 🇨🇿
Browse files

Fixed DataBinary30 FRC 2B value parsing

parent 422182c6
......@@ -1175,8 +1175,8 @@ iqrf.sensor.Frc_ConvertValue = function ( sensorType, frcValue, frcCommand )
case iqrf.sensor.STD_SENSOR_TYPE_BINARYDATA30:
switch ( frcCommand )
{
case iqrf.sensor.STD_SENSOR_FRC_2BITS:
value = frcValue & 0x01;
case iqrf.sensor.STD_SENSOR_FRC_2BYTES:
value = frcValue - 4;
break;
case iqrf.sensor.STD_SENSOR_FRC_4BYTES:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment