From d4e471092f85242a6f57dd5e5988214525ba35ce Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 8 Jul 2018 12:33:42 +0200 Subject: [PATCH] chg: i2c 'firmware version prints correct' --- common/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/i2c.c b/common/i2c.c index ba40a8e3b..128dca7ee 100644 --- a/common/i2c.c +++ b/common/i2c.c @@ -528,7 +528,7 @@ void I2C_print_status(void) { uint8_t len = I2C_BufferRead(resp, 4, I2C_DEVICE_CMD_GETVERSION, I2C_DEVICE_ADDRESS_MAIN); DbpString("Smart card module (ISO 7816)"); if ( len ) - Dbprintf(" FW version................v%x.%02x", resp[1], resp[2]); + Dbprintf(" FW version................v%x.%02x", resp[0], resp[1]); else DbpString(" FW version................FAILED"); }