Changeset 472 for branches/juciphox/core/luascript.c
- Timestamp:
- 08/07/08 19:07:24 (5 years ago)
- File:
-
- 1 edited
-
branches/juciphox/core/luascript.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/juciphox/core/luascript.c
r471 r472 406 406 static int luaCB_md_detect_motion( lua_State* L ) 407 407 { 408 int columns = (luaL_ checknumber(L,1));409 int rows = (luaL_ checknumber(L,2));410 int pixel_measure_mode = (luaL_ checknumber(L,3));411 int detection_timeout = (luaL_ checknumber(L,4));412 int measure_interval = (luaL_ checknumber(L,5));413 int threshold = (luaL_ checknumber(L,6));408 int columns = (luaL_optnumber(L,1,6)); 409 int rows = (luaL_optnumber(L,2,4)); 410 int pixel_measure_mode = (luaL_optnumber(L,3,1)); 411 int detection_timeout = (luaL_optnumber(L,4,10000)); 412 int measure_interval = (luaL_optnumber(L,5,7)); 413 int threshold = (luaL_optnumber(L,6,10)); 414 414 int draw_grid = (luaL_optnumber(L,7,1)); 415 415 // arg 8 is the return value in ubasic. We … … 420 420 int clipping_region_column2 = (luaL_optnumber(L,12,0)); 421 421 int clipping_region_row2 = (luaL_optnumber(L,13,0)); 422 int parameters = (luaL_optnumber(L,14, 0));423 int pixels_step = (luaL_optnumber(L,15, 4));422 int parameters = (luaL_optnumber(L,14,1)); 423 int pixels_step = (luaL_optnumber(L,15,6)); 424 424 int msecs_before_trigger = (luaL_optnumber(L,16,0)); 425 425 ubasic_set_variable(0, 0);
Note: See TracChangeset
for help on using the changeset viewer.