this should prevent some write callbacks to be called twice
Detect serial device disconnect on linux while polling and stop poling to prevent infinite loop
Merge pull request #393 from sweetpi/detect-disconnect-linux-patch

Detect serial device disconnect on linux while polling
Merge branch 'master' into develop
Merge.
Merge fixing.
Merge branch 'sweetpi-linux-write-callback-fix' into develop