diff --git a/examples/NiFi/NiFi.nds b/examples/NiFi/NiFi.nds index 7ae8b02..194cd8f 100644 Binary files a/examples/NiFi/NiFi.nds and b/examples/NiFi/NiFi.nds differ diff --git a/examples/NiFi/source/project.c b/examples/NiFi/source/project.c index a9e96ab..87c8138 100644 --- a/examples/NiFi/source/project.c +++ b/examples/NiFi/source/project.c @@ -207,7 +207,8 @@ void hello_create(helloObjectInstance *me) { } void hello_loop(helloObjectInstance *me) { - unsigned short buffer[2 * sizeof(int)]; + // Buffer must be aligned to 2 bytes, so use unsigned short + unsigned short buffer[(2 * sizeof(int)) / sizeof(unsigned short)]; if(DSGM_held.Stylus) { me->x = DSGM_stylus.x - 16;