Skip to content

Commit

Permalink
WDT feed for crash issue
Browse files Browse the repository at this point in the history
WDT feed for crash issue.
  • Loading branch information
alonewolfx2 committed Oct 26, 2015
1 parent afe5393 commit f046a0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LED_WS2812/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ void init()
char buffer1[] = "\x40\x00\x00\x00\x40\x00\x00\x00\x40";
ws2812_writergb(LED_PIN, buffer1, sizeof(buffer1));
os_delay_us(500000);


//We need to feed WDT.
WDT.alive();

char buffer2[] = "\x00\x40\x40\x40\x00\x40\x40\x40\x00";
ws2812_writergb(LED_PIN, buffer2, sizeof(buffer2));
os_delay_us(500000);
Expand Down

0 comments on commit f046a0e

Please sign in to comment.