Skip to content
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
pmeerw opened this issue Dec 6, 2015 · 1 comment
Open

setDataStreaming signature issue, wrong type for sensorMask #5

pmeerw opened this issue Dec 6, 2015 · 1 comment

Comments

@pmeerw
Copy link

pmeerw commented Dec 6, 2015

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
Copy link
Author

pmeerw commented Dec 6, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant