diff options
Diffstat (limited to 'source/features.py')
| -rw-r--r-- | source/features.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/features.py b/source/features.py index 2d2d80e..b86cca5 100644 --- a/source/features.py +++ b/source/features.py | |||
| @@ -3,7 +3,6 @@ import os | |||
| 3 | import speech_recognition as sr | 3 | import speech_recognition as sr |
| 4 | from gpiozero import CPUTemperature | 4 | from gpiozero import CPUTemperature |
| 5 | import hardware_driver as lcd # importing the ./hardware_driver.py file | 5 | import hardware_driver as lcd # importing the ./hardware_driver.py file |
| 6 | from main_cli import input_handling | ||
| 7 | 6 | ||
| 8 | # some functions need to be put on a different thread but we are keeping that project for another time | 7 | # some functions need to be put on a different thread but we are keeping that project for another time |
| 9 | # import threading | 8 | # import threading |
| @@ -153,11 +152,11 @@ class feat: | |||
| 153 | print("Error:", e) | 152 | print("Error:", e) |
| 154 | return None | 153 | return None |
| 155 | 154 | ||
| 156 | def save_notes(self, input_handling): | 155 | def save_notes(self, input): |
| 157 | self.clear_terminal_lcd() | 156 | self.clear_terminal_lcd() |
| 158 | print("Type your notes (type 'stop' to exit):") | 157 | print("Type your notes (type 'stop' to exit):") |
| 159 | while True: | 158 | while True: |
| 160 | note = input_handling(": ") | 159 | note = input |
| 161 | if note.lower() in ["stop", "exit", "quit"]: | 160 | if note.lower() in ["stop", "exit", "quit"]: |
| 162 | break | 161 | break |
| 163 | first_line = note[:16] | 162 | first_line = note[:16] |
