diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libirecovery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 90fa785..6f155e5 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -495,8 +495,8 @@ static int irecv_get_string_descriptor_ascii(irecv_client_t client, uint8_t desc | |||
| 495 | if (data[si + 1]) { | 495 | if (data[si + 1]) { |
| 496 | /* high byte */ | 496 | /* high byte */ |
| 497 | buffer[di++] = '?'; | 497 | buffer[di++] = '?'; |
| 498 | } else { | 498 | } else { |
| 499 | buffer[di++] = data[si]; | 499 | buffer[di++] = data[si]; |
| 500 | } | 500 | } |
| 501 | } | 501 | } |
| 502 | buffer[di] = 0; | 502 | buffer[di] = 0; |
| @@ -686,7 +686,7 @@ irecv_error_t irecv_set_interface(irecv_client_t client, int interface, int alt_ | |||
| 686 | 686 | ||
| 687 | irecv_error_t irecv_reset(irecv_client_t client) { | 687 | irecv_error_t irecv_reset(irecv_client_t client) { |
| 688 | if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; | 688 | if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; |
| 689 | 689 | ||
| 690 | #ifndef WIN32 | 690 | #ifndef WIN32 |
| 691 | libusb_reset_device(client->handle); | 691 | libusb_reset_device(client->handle); |
| 692 | #else | 692 | #else |
| @@ -714,7 +714,7 @@ irecv_error_t irecv_open_attempts(irecv_client_t* pclient, unsigned long long ec | |||
| 714 | } | 714 | } |
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | return IRECV_E_UNABLE_TO_CONNECT; | 717 | return IRECV_E_UNABLE_TO_CONNECT; |
| 718 | } | 718 | } |
| 719 | 719 | ||
| 720 | irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event_type type, irecv_event_cb_t callback, void* user_data) { | 720 | irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event_type type, irecv_event_cb_t callback, void* user_data) { |
