remove try catch
This commit is contained in:
parent
5387a5163b
commit
fe4b0a0313
@ -95,23 +95,23 @@ def monitor(charge_point_power):
|
|||||||
|
|
||||||
#drawblack.text((100, 80), str(charge_point_power), font = font16, fill = 0)
|
#drawblack.text((100, 80), str(charge_point_power), font = font16, fill = 0)
|
||||||
|
|
||||||
try:
|
|
||||||
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))
|
|
||||||
|
|
||||||
#logging.info("Clear...")
|
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))
|
||||||
#epd.init()
|
|
||||||
#epd.Clear()
|
|
||||||
|
|
||||||
logging.info("Goto Sleep...")
|
#logging.info("Clear...")
|
||||||
epd.sleep()
|
#epd.init()
|
||||||
|
#epd.Clear()
|
||||||
|
|
||||||
except IOError as e:
|
logging.info("Goto Sleep...")
|
||||||
logging.info(e)
|
epd.sleep()
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
#except IOError as e:
|
||||||
logging.info("ctrl + c:")
|
# logging.info(e)
|
||||||
epd2in13b_V3.epdconfig.module_exit()
|
|
||||||
exit()
|
#except KeyboardInterrupt:
|
||||||
|
# logging.info("ctrl + c:")
|
||||||
|
# epd2in13b_V3.epdconfig.module_exit()
|
||||||
|
# exit()
|
||||||
|
|
||||||
#client.loop_forever()
|
#client.loop_forever()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user