Changeset 1001 for trunk


Ignore:
Timestamp:
12/06/10 22:31:00 (2 years ago)
Author:
pixeldoc2000
Message:

uartrtst.lua updated (added native function call support check and delay)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHDK/SCRIPTS/TEST/uartrtst.lua

    r996 r1001  
    33requires CHDK built with native function call support 
    44--]] 
     5 
     6if (type(call_event_proc) ~= "function" ) then 
     7    error("ERROR: requires CHDK build with native function call support.") 
     8end 
    59 
    610-- include lualib module (uartr.lua) 
     
    1317--uartr.start() 
    1418 
     19-- Short delay to avoid trouble, ToDo: really necessary ? 
     20sleep(100) 
     21 
    1522-- os.date() return something like "Sat Dec  4 01:54:01 2010" 
    1623call_event_proc("Printf", os.date().." UART redirect Test (uartrtst.lua) OK\n"); 
    1724 
     25-- Short delay to avoid trouble, ToDo: really necessary ? 
     26sleep(100) 
     27 
    1828uartr.stop() 
Note: See TracChangeset for help on using the changeset viewer.