mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Add missing i2c init in sc upgrade
This commit is contained in:
parent
8302751db7
commit
2e884db100
1 changed files with 3 additions and 1 deletions
|
@ -124,6 +124,8 @@ void I2C_Reset_EnterMainProgram(void) {
|
||||||
// Reset the SIM_Adapter, then enter the bootloader program
|
// Reset the SIM_Adapter, then enter the bootloader program
|
||||||
// Reserve for firmware update.
|
// Reserve for firmware update.
|
||||||
void I2C_Reset_EnterBootloader(void) {
|
void I2C_Reset_EnterBootloader(void) {
|
||||||
|
StartTicks();
|
||||||
|
I2C_init();
|
||||||
I2C_SetResetStatus(0, 1, 1);
|
I2C_SetResetStatus(0, 1, 1);
|
||||||
WaitMS(100);
|
WaitMS(100);
|
||||||
I2C_SetResetStatus(1, 1, 1);
|
I2C_SetResetStatus(1, 1, 1);
|
||||||
|
@ -801,4 +803,4 @@ void SmartCardSetClock(uint64_t arg0) {
|
||||||
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
|
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
|
||||||
set_tracing(false);
|
set_tracing(false);
|
||||||
LEDsoff();
|
LEDsoff();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue