Commit 46301628 authored by Richard Miller's avatar Richard Miller

Make example code more reliable.

parent 36a81a8e
......@@ -166,7 +166,7 @@ setup(void)
size_t len;
static char buf[128];
snprintf(buf, sizeof buf, "sysclk: %lu HSE: %lu\n", SystemCoreClock, HSE_VALUE);
snprintf(buf, sizeof buf, "sysclk: %d HSE: %d\n", (int)SystemCoreClock, (int)HSE_VALUE);
uart_puts(buf);
len = &_binary_bitmap_bin_end - &_binary_bitmap_bin_start;
......@@ -180,7 +180,7 @@ setup(void)
void
loop(void)
{
int toggle = 0;
static int toggle = 0;
if (toggle) {
if (loadstatus != OK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment