1. 16 Dec, 2015 2 commits
    • Johny Mattsson's avatar
      Reworked module registration, removed modules.h · 4e8ef87d
      Johny Mattsson authored
      Module creation & registration now made a lot simpler. In essence,
      each module file is now self-contained and only needs a
      
        NODEMCU_MODULE(MYNAME, "myname", myname_map, luaopen_myname);
      
      line to both be automatically recognised by the Lua initialization
      as well as honor the LUA_USE_MODULES_MYNAME #define.
      4e8ef87d
    • TerryE's avatar
      Major cleanup of module registration pass 2. · b773290b
      TerryE authored
      carrying on Johny's edits as per my comments on #810
      b773290b
  2. 12 Dec, 2015 1 commit
    • Johny Mattsson's avatar
      Major cleanup of module registration. · 6b6456be
      Johny Mattsson authored
      As per #810 & #796, only LUA_OPTIMIZE_MEMORY=2 & MIN_OPT_LEVEL=2 are
      supported when building. This commit effects that limitation.
      
      With this change modules/auxmods.h no longer needs to be updated for
      every new module, nor do module writers need to cater for a hypothetical
      LUA_OPTIMIZE_MEMORY < 2 scenario.
      6b6456be
  3. 05 Dec, 2015 1 commit
    • Nick Andrew's avatar
      Remove the lobject.c:88 assertion failures · e9ee9a57
      Nick Andrew authored
      
      
      When lua assertions are enabled, normal operation results in many:
      
      lobject.c:88: (((t1)->tt) == 4)
      lobject.c:88: (((t2)->tt) == 4)
      lobject.c:88: (((t1)->tt) == 4)
      lobject.c:88: (((t2)->tt) == 4)
      lobject.c:88: (((t1)->tt) == 4)
      lobject.c:88: (((t2)->tt) == 4)
      
      It comes from using the pvalue() macro for 3 pointer types, where
      pvalue() also checks the type of pointer and complains through the
      assertion where the type == 4 (TLIGHTUSERDATA).
      
      Use the correct macro according to the type of data being compared
      to eliminate this assertion error.
      Signed-off-by: default avatarNick Andrew <nick@nick-andrew.net>
      e9ee9a57
  4. 03 Dec, 2015 1 commit
  5. 28 Nov, 2015 1 commit
  6. 23 Nov, 2015 1 commit
    • TerryE's avatar
      Merge Onewire changes from Master into Dev · 583049f6
      TerryE authored
      Master contained two OW changes one of which was already reimplemented in dev using the
      correct macros.  The second was from hazarkarabay (f6d0c0c) that onewire_search()
      returns a device address vector even when no device is found.  I've reimplemented this
      but using the correct index, rom_byte_number, rather than declaring a new temp index i.
      583049f6
  7. 22 Nov, 2015 1 commit
  8. 19 Nov, 2015 3 commits
  9. 18 Nov, 2015 3 commits
  10. 12 Nov, 2015 2 commits
  11. 11 Nov, 2015 1 commit
  12. 10 Nov, 2015 4 commits
  13. 09 Nov, 2015 1 commit
  14. 08 Nov, 2015 2 commits
  15. 06 Nov, 2015 3 commits
  16. 05 Nov, 2015 3 commits
  17. 04 Nov, 2015 4 commits
  18. 03 Nov, 2015 4 commits
  19. 01 Nov, 2015 1 commit
  20. 31 Oct, 2015 1 commit