moved all the working code out of the main wait loop into new function
do_scan()
Might rename that sometime soon though
Merge branch 'master' into dev_on_pi
Implemented 1 Button with two functions based on press duration