diff options
Diffstat (limited to 'utils/hwstub/tools/lua/pp.lua')
-rw-r--r-- | utils/hwstub/tools/lua/pp.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/hwstub/tools/lua/pp.lua b/utils/hwstub/tools/lua/pp.lua index 5f2503040c..f9234780e5 100644 --- a/utils/hwstub/tools/lua/pp.lua +++ b/utils/hwstub/tools/lua/pp.lua | |||
@@ -60,3 +60,12 @@ PP.debug_on = false | |||
60 | function PP.debug(...) | 60 | function PP.debug(...) |
61 | if PP.debug_on then print(...) end | 61 | if PP.debug_on then print(...) end |
62 | end | 62 | end |
63 | |||
64 | hh = h:create_topic("debug") | ||
65 | hh:add("PP.debug(...) prints some debug output if PP.debug_on is true and does nothing otherwise.") | ||
66 | |||
67 | PP.debug_on = false | ||
68 | |||
69 | if PP.info.chip ~= nil then | ||
70 | require "pp/gpio" | ||
71 | end | ||