summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-19 20:47:50 +0100
committerGravatar Nikias Bassen2013-11-19 20:47:50 +0100
commit7e0327b9ce359064953168deffc8f96273357437 (patch)
tree864adef6bcdb7cc943db79f4648b5a531b1f2327 /src
parent054a79d64e55ce7d9874e65814c5a17caa1ca1f0 (diff)
downloadlibirecovery-7e0327b9ce359064953168deffc8f96273357437.tar.gz
libirecovery-7e0327b9ce359064953168deffc8f96273357437.tar.bz2
fix irecv_devices_get_device_by_client()
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 604a9c4..be0024f 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1577,8 +1577,6 @@ irecv_device_t irecv_devices_get_all() {
}
irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device) {
- uint32_t bdid = 0;
- uint32_t cpid = 0;
int i = 0;
*device = NULL;
@@ -1592,7 +1590,7 @@ irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_de
}
for (i = 0; irecv_devices[i].hardware_model != NULL; i++) {
- if (irecv_devices[i].chip_id == cpid && irecv_devices[i].board_id == bdid) {
+ if (irecv_devices[i].chip_id == client->device_info.cpid && irecv_devices[i].board_id == client->device_info.bdid) {
*device = &irecv_devices[i];
return IRECV_E_SUCCESS;
}