diff --git a/include/Mode.h b/include/Mode.h index 7f642fa..73d63a4 100644 --- a/include/Mode.h +++ b/include/Mode.h @@ -2,10 +2,11 @@ #define KIMODEM_MODE_H -static struct Mode { +struct Mode { bool (*Process)(); bool (*Update)(); -} *currentMode(nullptr); +}; +static Mode *currentMode = new Mode; #endif \ No newline at end of file