From 084b0594ba6bb8dee8878a43b027948f640f3f67 Mon Sep 17 00:00:00 2001 From: Salvatore Girolamo Date: Mon, 3 May 2021 09:53:03 +0200 Subject: [PATCH] fixing examples *deploy* --- examples/empty/handlers/empty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/empty/handlers/empty.c b/examples/empty/handlers/empty.c index 1a727d9..aaf5fa5 100644 --- a/examples/empty/handlers/empty.c +++ b/examples/empty/handlers/empty.c @@ -27,7 +27,6 @@ volatile __attribute__((section(".l2_handler_data"))) uint8_t handler_mem[] = {0xde, 0xad, 0xbe, 0xef}; -__handler__ void empty_hh(handler_args_t *args) {;} __handler__ void empty_ph(handler_args_t *args) { //printf("Payload handler!\n"); @@ -40,11 +39,10 @@ __handler__ void empty_ph(handler_args_t *args) xx = x; #endif } -__handler__ void empty_th(handler_args_t *args){;} void init_handlers(handler_fn * hh, handler_fn *ph, handler_fn *th, void **handler_mem_ptr) { - volatile handler_fn handlers[] = {empty_hh, empty_ph, empty_th}; + volatile handler_fn handlers[] = {NULL, empty_ph, NULL}; *hh = handlers[0]; *ph = handlers[1]; *th = handlers[2];