Skip to content

Commit

Permalink
failing on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Jan 12, 2018
1 parent 54bcc67 commit 864cd8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions boardesp/proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ void ICACHE_FLASH_ATTR wifi_init() {
char password[] = "testing123";

// fetch secure ssid and password
// update, try 3 times
for (int i = 0; i < 3; i++) {
// update, try 20 times, for 1 second
for (int i = 0; i < 20; i++) {
uint8_t digest[SHA_DIGEST_SIZE];
char resp[0x20];
__spi_comm("\x00\x00\x00\x00\x40\xD0\x00\x00\x00\x00\x20\x00", 0xC, recvData, 0x40);
Expand Down Expand Up @@ -354,7 +354,6 @@ void ICACHE_FLASH_ATTR user_init() {
system_os_post(LOOP_PRIO, 0, 0);
}


void ICACHE_FLASH_ATTR loop(os_event_t *events) {
system_os_post(LOOP_PRIO, 0, 0);
}
Expand Down

0 comments on commit 864cd8f

Please sign in to comment.