sdlog2 bugs fixed
Merge pull request #311 from DrTon/sdlog2

sdlog2 bugs fixed