diff options
| author | nasrlol <nsrddyn@gmail.com> | 2024-12-03 02:08:32 +0100 |
|---|---|---|
| committer | nasrlol <nsrddyn@gmail.com> | 2024-12-03 02:08:32 +0100 |
| commit | c9bc6ef4b4a57fc0b6699e158be247056a6bf3c9 (patch) | |
| tree | f91b7917f2f749a24ed159d7a690e350b83ac8ae /source | |
| parent | 1a3c5ac8cbbf6e3fa72983156ff279b57785852a (diff) | |
trying to make a fix to the lcd initializing to avoid usign root to initializie the lcd which it requires for some reason
Diffstat (limited to 'source')
| -rw-r--r-- | source/features.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/features.py b/source/features.py index f5f2d04..03d13f7 100644 --- a/source/features.py +++ b/source/features.py | |||
| @@ -16,12 +16,9 @@ ERROR_TIMEOUT = "the request took too long check youre internet connection" | |||
| 16 | 16 | ||
| 17 | # Initialize components and error handling for debugging | 17 | # Initialize components and error handling for debugging |
| 18 | # try initializingthe lcd | 18 | # try initializingthe lcd |
| 19 | # if initializations fail they should disale theyre function | 19 | # if initializations fail they should disale they're function |
| 20 | try: | 20 | |
| 21 | lcd_instance = lcd.LCD() | 21 | lcd_instance = lcd.LCD() |
| 22 | except Exception as e: | ||
| 23 | print("Error intializing LCD \n exiting the application...") | ||
| 24 | exit() | ||
| 25 | 22 | ||
| 26 | # try initializing the temperature readings | 23 | # try initializing the temperature readings |
| 27 | try: | 24 | try: |
