)]}'
{
  "commit": "a0b5d27fa7f2bba11965e2b70533f925a5772808",
  "tree": "0e9089f36a5ed203b13cfe016857b3d9cc5a4a73",
  "parents": [
    "2a7372db54094a406a755f0b8548b614ba8c78ec"
  ],
  "author": {
    "name": "Nathan Hjelm",
    "email": "hjelmn@me.com",
    "time": "Thu Apr 04 12:02:25 2019 -0600"
  },
  "committer": {
    "name": "Nathan Hjelm",
    "email": "hjelmn@cs.unm.edu",
    "time": "Thu Apr 04 19:08:51 2019 -0600"
  },
  "message": "darwin: fix reset device\n\nThis commit fixes the backend of reset device to restore the state\nof the device if possible. This fixes a bug introduced in\nc14ab5fc4d22749aab9e3534d56012718a0b0f67. The previous commit\nwas necessary due to changes in the system USB stack that\nessentially turned the ResetDevice function into a no-op. This\nrequired libusb to move to USBDevuceReEnumerate to effectively\nreset the device. The problem is that both the device handle and\nlibusb devices became invalid. This commit fixes the bug by\nwaiting for the re-enumeration to complete then 1) checking\nwhether the descriptors changed, 2) restoring the active\nconfiguration, and 3) restoring claimed interfaces.\n\nCloses #523\n\nSigned-off-by: Nathan Hjelm \u003chjelmn@me.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2d6b2171c6405529b8fa998dc1f8e1a5245a31eb",
      "old_mode": 33188,
      "old_path": "libusb/os/darwin_usb.c",
      "new_id": "dd391db43b35eda89c215d7d2b8b7d0468afec4b",
      "new_mode": 33188,
      "new_path": "libusb/os/darwin_usb.c"
    },
    {
      "type": "modify",
      "old_id": "8a728bc85a677d1b272df5da01814813caf72742",
      "old_mode": 33188,
      "old_path": "libusb/os/darwin_usb.h",
      "new_id": "3d76baf1cf0b8feaafce6d1b7e076578db73c8d7",
      "new_mode": 33188,
      "new_path": "libusb/os/darwin_usb.h"
    },
    {
      "type": "modify",
      "old_id": "c308dffa3800d8fbdbfed1832a244af9fec55bbe",
      "old_mode": 33188,
      "old_path": "libusb/version_nano.h",
      "new_id": "dc1509140daa176e9a67eb8d4e2407ea85cd0b9e",
      "new_mode": 33188,
      "new_path": "libusb/version_nano.h"
    }
  ]
}
