diff options
author | Martin Szulecki | 2013-09-21 16:22:38 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-21 16:22:38 +0200 |
commit | eebb32767cfb90548ed04b6d064629bac5d1f724 (patch) | |
tree | 45b37898bc9d1fa6481ba47282414e3650bbe933 | |
parent | 9459204b860eb6ede4375e24fd705dd81388b1ac (diff) | |
download | libirecovery-eebb32767cfb90548ed04b6d064629bac5d1f724.tar.gz libirecovery-eebb32767cfb90548ed04b6d064629bac5d1f724.tar.bz2 |
irecovery: Output basic device information after connecting
-rw-r--r-- | src/irecovery.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irecovery.c b/src/irecovery.c index 95cd649..075ee79 100644 --- a/src/irecovery.c +++ b/src/irecovery.c @@ -344,6 +344,11 @@ int main(int argc, char* argv[]) { } } + irecv_device_t device = NULL; + irecv_get_device(client, &device); + if (device) + debug("Connected to %s, model %s, cpid 0x%04x, bdid 0x%02x\n", device->product, device->model, device->chip_id, device->board_id); + switch (action) { case kResetDevice: irecv_reset(client); |