Merge pull request #1158 from jean-m-cyr/master

Prevent stack overflow when flashing px4io
Fixed the submodule check logic