chiark / gitweb /
Check for EOF on the serialCommunication module
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Sat, 27 Dec 2014 23:01:42 +0000 (18:01 -0500)
committerSteven Abadie <steven@alephobjects.com>
Tue, 30 Dec 2014 22:34:11 +0000 (15:34 -0700)
commita6b8039db45dcb32e0acc5d5815a7e228d7c453f
tree3e46f92ff690795457510530406d132c265f1d85
parente67704d967d3111239e14d90c5d3cc8c9fb24228
Check for EOF on the serialCommunication module
If Cura has terminated, stdin will be in EOF which will cause the readline
to return an empty string. By catching that, we will be abl to quit
instead of spamming stderr with [''].
Fixes #63 and possibly issue #45 as well.
Cura/serialCommunication.py