From eebb32767cfb90548ed04b6d064629bac5d1f724 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 21 Sep 2013 16:22:38 +0200 Subject: irecovery: Output basic device information after connecting --- src/irecovery.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.1-32-gdbae