merged patch provided by c.hoeflake in #355
reduced amount of variables
Merge pull request #824 from teichsta/onewire-type-enhancement

merged patch provided by c.hoeflake in #355