Skip to content

Commit

Permalink
SUKU use global position instead of default position
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Aug 30, 2024
1 parent 591cd79 commit 85ca71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid_common/grid_lua_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@
// grid_platform_printf("LUA PRINT: ");
if (nargs == 3) {

uint8_t x = GRID_PARAMETER_DEFAULT_POSITION;
uint8_t y = GRID_PARAMETER_DEFAULT_POSITION;
uint8_t x = GRID_PARAMETER_GLOBAL_POSITION;
uint8_t y = GRID_PARAMETER_GLOBAL_POSITION;

if (lua_type(L, 1) == LUA_TNUMBER && lua_type(L, 2) == LUA_TNUMBER) {
x = lua_tonumber(L, 1) + GRID_PARAMETER_DEFAULT_POSITION;
Expand Down

0 comments on commit 85ca71c

Please sign in to comment.