Skip to content

Commit

Permalink
fixing examples *deploy*
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvatore Girolamo committed May 3, 2021
1 parent 161b047 commit 084b059
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/empty/handlers/empty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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];
Expand Down

0 comments on commit 084b059

Please sign in to comment.