Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/generic/hiddev.c

    r19e0560e r0d59d0e9  
    126126        }
    127127       
    128         /*! @todo This should probably be somehow atomic. */
     128        /*! @todo This should probably be atomic. */
     129//      if (usb_hid_report_ready()) {
     130//              usb_log_debug2("Report ready, size: %zu\n",
     131//                  hid_dev->input_report_size);
     132               
     133//              usb_hid_report_received();
     134//      } else {
     135//              memset(buffer, 0, hid_dev->input_report_size);
     136//      }
    129137        memcpy(buffer, hid_dev->input_report,
    130138            hid_dev->input_report_size);
     
    132140        *event_nr = usb_hid_report_number(hid_dev);
    133141       
     142        // clear the buffer so that it will not be received twice
     143        //memset(hid_dev->input_report, 0, hid_dev->input_report_size);
     144       
     145        // note that we already received this report
     146//      report_received = true;
    134147        usb_log_debug2("OK\n");
    135148       
     
    171184       
    172185        if (hid_dev->report_desc_size > size) {
    173                 return EINVAL;
     186                return EINVAL;  // TODO: other error code
    174187        }
    175188       
Note: See TracChangeset for help on using the changeset viewer.