summaryrefslogtreecommitdiff
path: root/source/features.py
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2024-12-09 21:37:55 +0100
committernasrlol <nsrddyn@gmail.com>2024-12-09 21:37:55 +0100
commit00589c266eb6fc048b6ae7d00a72303876d2b247 (patch)
tree7cf7eba37850463c2475f822756ddbfff6c87453 /source/features.py
parent2049c11d4f2f1b2bfa48c23b9eba6cb1babfc812 (diff)
fixed the custom greeting
Diffstat (limited to 'source/features.py')
-rw-r--r--source/features.py5
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
3import speech_recognition as sr 3import speech_recognition as sr
4from gpiozero import CPUTemperature 4from gpiozero import CPUTemperature
5import hardware_driver as lcd # importing the ./hardware_driver.py file 5import hardware_driver as lcd # importing the ./hardware_driver.py file
6from 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]