Skip to content

Commit

Permalink
use xsmcToReference
Browse files Browse the repository at this point in the history
  • Loading branch information
mkellner committed Apr 3, 2024
1 parent 94db5a8 commit 298fe72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/drivers/touchpad/esp32/modTouchpad.c
Expand Up @@ -127,7 +127,7 @@ void xs_touchpad(xsMachine *the)
xsSlot tmp;

xsmcGet(tmp, xsArg(0), xsID_onReadable);
touchpad->onReadable = xsToReference(tmp);
touchpad->onReadable = xsmcToReference(tmp);

xsSetHostHooks(xsThis, (xsHostHooks *)&xsTouchpadHooks);
}
Expand Down

0 comments on commit 298fe72

Please sign in to comment.