Commits

Jérôme Vuarand committed 08c5cdc

Made require calls a bit more 5.2-ish.

Comments (0)

Files changed (1)

 
 package.path = "demo/?.lua;"..package.path
 
-require 'usb'
-require 'names'
-require 'bit'
+local usb = require 'usb'
+local names = require 'names'
+local bit = require 'bit'
+local serial = require 'serial'
+require 'serial.util'
+--require 'util'
 
 names.init("demo/usb.ids")
 
 	end
 end
 
-require 'serial'
-require 'serial.util'
-require 'util'
-
 local tags = serial.util.enum{
 	-- main items
 	input              = 0x20,