Applied fix to main problem but now swamped by warnings
Use select to check webcam ready