From 2e884db1005cc0c674dce890d825776b0d6dddf6 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 5 Mar 2019 19:44:02 +0100 Subject: [PATCH] Add missing i2c init in sc upgrade --- common/i2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/i2c.c b/common/i2c.c index 25b17b6bc..53627966e 100644 --- a/common/i2c.c +++ b/common/i2c.c @@ -124,6 +124,8 @@ void I2C_Reset_EnterMainProgram(void) { // Reset the SIM_Adapter, then enter the bootloader program // Reserve for firmware update. void I2C_Reset_EnterBootloader(void) { + StartTicks(); + I2C_init(); I2C_SetResetStatus(0, 1, 1); WaitMS(100); I2C_SetResetStatus(1, 1, 1); @@ -801,4 +803,4 @@ void SmartCardSetClock(uint64_t arg0) { cmd_send(CMD_ACK, 1, 0, 0, 0, 0); set_tracing(false); LEDsoff(); -} \ No newline at end of file +}