From 7fffc50d7c08b6906c03c02d942f8955424adb14 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Fri, 6 Oct 2017 13:25:53 +0200 Subject: [PATCH] show acrive partition --- examples/osd/ota-update/sketch.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osd/ota-update/sketch.pde b/examples/osd/ota-update/sketch.pde index cfc78d356..ec32dff74 100644 --- a/examples/osd/ota-update/sketch.pde +++ b/examples/osd/ota-update/sketch.pde @@ -10,6 +10,7 @@ extern "C" { #include #include "contiki.h" #include "contiki-net.h" +#include "bootloader_if.h" #include "er-coap.h" #include "resources.h" char resname[] = "update"; @@ -31,5 +32,5 @@ void setup (void) void loop (void) { - printf ("Hello\n"); + printf ("Hello %lu\n",bootloader_get_active_part()); }