From 809215a568f9b19bb00d69d06eb48cd20380a9b3 Mon Sep 17 00:00:00 2001 From: txoof Date: Sat, 11 Jan 2020 14:39:46 +0100 Subject: [PATCH] add mroe useful logging messages around gpio init --- .../python/lib/waveshare_epd/epdconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py index 5dbdefe..44a8401 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py @@ -49,9 +49,9 @@ class RaspberryPi: self.SPI = spidev.SpiDev(0, 0) except PermissionError as e: logging.critical(f'Error initing SPI {e}') - logging.ciritcal('The current user may not have access to /dev/spidev*') + logging.critical('The current user may not have access to /dev/spidev*') logging.critical('Remedy this by adding the user to the spi access group:') - logging.critical('$ sudo groupadd spi') + logging.critical('$ usermod -a spi ') sys.exit(1) def digital_write(self, pin, value):