~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to PsychSourceGL/Source/Common/PsychHID/PsychHIDSetReport.c

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
                error=0;        
105
105
        } else {
106
106
#if PSYCH_SYSTEM == PSYCH_OSX
107
 
        IOHIDDeviceInterface122 **interface;
108
 
        interface=(IOHIDDeviceInterface122 **)(device->interface);
 
107
        IOHIDDeviceInterface122 **interface = NULL;
 
108
        interface = PsychHIDGetDeviceInterfacePtrFromIndex(deviceIndex);
109
109
        if(interface) error=(*interface)->setReport(interface,reportType-1,reportID,reportBuffer,(psych_uint32) reportSize,50,NULL,NULL,NULL);
110
110
        else PrintfExit("PsychHID SetReport: Bad interface.\n");
111
111