fix_python_cleanup_exit: Fix Python cleanup and exit execution path for

some examples.

This fix apparently seems to be very trivial but if the user terminates
an executing Python example program with CTRL+C and then leaves the display
at that state then power is still applied to the display as a result of not
executing the cleanup and exit path. This can damage the display eventually.
This commit is contained in:
Ishraq Ibne Ashraf 2020-07-27 23:37:33 +02:00
commit 50995ae358
5 changed files with 5 additions and 5 deletions

View file

@ -95,5 +95,5 @@ except IOError as e:
except KeyboardInterrupt:
logging.info("ctrl + c:")
epd1in54.epdconfig.module_exit()
epd1in02.epdconfig.module_exit()
exit()

View file

@ -76,5 +76,5 @@ except IOError as e:
except KeyboardInterrupt:
logging.info("ctrl + c:")
epd1in54b.epdconfig.module_exit()
epd1in54b_V2.epdconfig.module_exit()
exit()

View file

@ -86,5 +86,5 @@ except IOError as e:
except KeyboardInterrupt:
logging.info("ctrl + c:")
epd7in5.epdconfig.module_exit()
epd7in5_V2.epdconfig.module_exit()
exit()

View file

@ -93,5 +93,5 @@ except IOError as e:
except KeyboardInterrupt:
logging.info("ctrl + c:")
epd7in5.epdconfig.module_exit()
epd7in5bc_V2.epdconfig.module_exit()
exit()

View file

@ -93,5 +93,5 @@ except IOError as e:
except KeyboardInterrupt:
logging.info("ctrl + c:")
epd7in5.epdconfig.module_exit()
epd7in5b_V3.epdconfig.module_exit()
exit()