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)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Sat, 27 Dec 2014 23:01:42 +0000 (18:01 -0500)
commitfb1c778d4b5fde47537d84d4ae08fa76b9d0fa0b
treeff531cafb184a154d10df43080b50508778a528f
parentb7d9420b0e2a737d85073bda16cdb7859f78c941
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