Skip to content
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
@pmeerw

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions