UNITY-PLUGIN icon indicating copy to clipboard operation
UNITY-PLUGIN copied to clipboard

setDataStreaming signature issue, wrong type for sensorMask

Open pmeerw opened this issue 10 years ago • 1 comments

this is wrong; sensorMask should be cast to (long) otherwise one gets a JNI signature exception

override public void SetDataStreaming(ushort divisor, ushort packetFrames, SpheroDataStreamingMask sensorMask, ushort packetCount) { m_UnityBridge.Call("setDataStreaming",m_AndroidJavaSphero, divisor, packetFrames, sensorMask, packetCount); }

compare with m_UnityBridge.Call("enableControllerStreaming",m_AndroidJavaSphero,(int)divisor,(int)packetFrames,(long)sensorMask); where casting is performed...

pmeerw avatar Dec 06 '15 18:12 pmeerw

one can easily fix this in Plugins/Sphero/SpheroAndroid.cs

pmeerw avatar Dec 06 '15 18:12 pmeerw