Skip to content

Commit

Permalink
lime-system: added inline documentation for hardware_detection module
Browse files Browse the repository at this point in the history
  • Loading branch information
frank95 committed Jul 8, 2014
1 parent 1b7206a commit d3fa39f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ local utils = require("lime.utils")

hardware_detection = {}

--! Hardware detection module clean()
--! Call clean() from all installed submodules
function hardware_detection.clean()
for hwd_module_path in fs.glob("/usr/lib/lua/lime/hwd/*.lua") do
local module_name = "lime.hwd." .. fs.basename(hwd_module_path):sub(1,-5)
Expand All @@ -15,6 +17,8 @@ function hardware_detection.clean()
end
end

--! Hardware detection module configure()
--! Call detect_hardware() from all installed submodules
function hardware_detection.configure()
for hwd_module_path in fs.glob("/usr/lib/lua/lime/hwd/*.lua") do
local module_name = "lime.hwd." .. fs.basename(hwd_module_path):sub(1,-5)
Expand Down

0 comments on commit d3fa39f

Please sign in to comment.