Fix the error when no devices were connected.
Merge branch 'master' into branch_for_scons

Conflicts:
	bin.py