added error if all data is written to pipe
Merge branch 'master' of github.com:bradjc/raspberrypi-cc2520