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:
parent
853a3a4632
commit
50995ae358
5 changed files with 5 additions and 5 deletions
|
|
@ -95,5 +95,5 @@ except IOError as e:
|
|||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd1in54.epdconfig.module_exit()
|
||||
epd1in02.epdconfig.module_exit()
|
||||
exit()
|
||||
|
|
|
|||
|
|
@ -76,5 +76,5 @@ except IOError as e:
|
|||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd1in54b.epdconfig.module_exit()
|
||||
epd1in54b_V2.epdconfig.module_exit()
|
||||
exit()
|
||||
|
|
|
|||
|
|
@ -86,5 +86,5 @@ except IOError as e:
|
|||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd7in5.epdconfig.module_exit()
|
||||
epd7in5_V2.epdconfig.module_exit()
|
||||
exit()
|
||||
|
|
|
|||
|
|
@ -93,5 +93,5 @@ except IOError as e:
|
|||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd7in5.epdconfig.module_exit()
|
||||
epd7in5bc_V2.epdconfig.module_exit()
|
||||
exit()
|
||||
|
|
|
|||
|
|
@ -93,5 +93,5 @@ except IOError as e:
|
|||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd7in5.epdconfig.module_exit()
|
||||
epd7in5b_V3.epdconfig.module_exit()
|
||||
exit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue