mirror of
https://github.com/CTurt/dsgmLib.git
synced 2025-06-18 22:55:33 -04:00
Correct buffer size in NiFi example
This commit is contained in:
parent
6f4e8605c2
commit
aa07be446a
Binary file not shown.
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user