diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h index ba9c3f0d87b..13c970c9906 100644 --- a/sys/sys/eventhandler.h +++ b/sys/sys/eventhandler.h @@ -190,7 +190,7 @@ typedef void (*shutdown_fn)(void *, int); #define SHUTDOWN_PRI_FIRST EVENTHANDLER_PRI_FIRST #define SHUTDOWN_PRI_DEFAULT EVENTHANDLER_PRI_ANY -#define SHUTDOWN_PRI_LAST EVENTHANDLER_PRI_FIRST +#define SHUTDOWN_PRI_LAST EVENTHANDLER_PRI_LAST EVENTHANDLER_DECLARE(shutdown_pre_sync, shutdown_fn); /* before fs sync */ EVENTHANDLER_DECLARE(shutdown_post_sync, shutdown_fn); /* after fs sync */