tools: Dump the full page

The pages are 512 bytes. Increase the limit to dump the full page.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-10-18 13:12:18 +02:00
parent 7e5f77f402
commit 123254c737

View File

@@ -35,8 +35,8 @@ dump_page(struct hidpp10_device *dev, size_t page, size_t offset)
int rc = 0;
uint8_t bytes[16];
while (offset < 256) {
hidpp_log_info(&dev->base, "page 0x%02zx off 0x%02zx: ", page, offset);
while (offset < 512) {
hidpp_log_info(&dev->base, "page 0x%02zx off 0x%03zx: ", page, offset);
rc = hidpp10_read_memory(dev, page, offset, bytes);
if (rc != 0)
break;