fix platform detection
Merge branch 'master' of https://github.com/sergachev/open_sld
split sld_controller and main
further cleanup, add IR write at start (required somewhy)