Skip to content

Commit

Permalink
small c-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ulno committed Jul 25, 2017
1 parent 48f60bb commit 91bcc95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boot8266/boot8266.c
Expand Up @@ -85,7 +85,7 @@ bool check_buttons(void)
_printf("Initial GPIO state: %x, OE: %x\n", gpio_ini, *(uint32_t*)0x60000314);
gpio_ini &= gpio_mask;

long length = *((long *)(RTCMEM_BASE+512+16))
long length = *((long *)(RTCMEM_BASE+512+16));
_printf("Length: %d\n",length);

/* _printf("Memory: ");
Expand All @@ -99,7 +99,7 @@ bool check_buttons(void)
_printf("\n");*/

// check if magic word in memory
if( ! strncmp(RTCMEM_BASE+512+20, "yaotaota", 8) ) {
if( ! strncmp((void *)(RTCMEM_BASE+512+20), "yaotaota", 8) ) {
return true; // trigger ota-boot
}

Expand Down

0 comments on commit 91bcc95

Please sign in to comment.