Fixes warnings, bad code and code style
Use the Z1 product ID as MAC/Node ID if no value is found in the XMEM
Merge pull request #824 from alignan/fix_warnings

Warning fixes
Merge pull request #820 from alignan/serialnum_as_nodeid

Use the Z1 product ID as MAC/Node ID if no value is found in XMEM
Merge commit '0d39ee96adac70d2a50869f4d193b67373150997' into HEAD