This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
setDataStreaming signature issue, wrong type for sensorMask #5
Open
Description
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...
Metadata
Assignees
Labels
No labels