Skip to content

Commit ebf8a98

Browse files
Remove debug output
1 parent a7f6400 commit ebf8a98

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

internal_filesystem/lib/mpos/app/app.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
self.installed_path = installed_path
3333

3434
self.icon_path = self._find_icon_path()
35-
print(f"App constructor got icon_path: {self.icon_path}")
35+
#print(f"App constructor got icon_path: {self.icon_path}")
3636
if self.icon_path:
3737
self.icon_data = self._load_icon_data(self.icon_path)
3838
else:
@@ -43,21 +43,22 @@ def __str__(self):
4343
return f"App({self.name}, version {self.version}, {self.category})"
4444

4545
def _load_icon_data(self, icon_path):
46-
print(f"App _load_icon_data for {icon_path}")
46+
#print(f"App _load_icon_data for {icon_path}")
4747
try:
4848
f = open(icon_path, 'rb')
4949
return f.read()
5050
except Exception as e:
51-
print(f"open {icon_path} got error: {e}")
51+
#print(f"open {icon_path} got error: {e}")
52+
pass
5253

5354
def _check_icon_path(self, tocheck):
5455
try:
55-
print(f"checking {tocheck}")
56+
#print(f"checking {tocheck}")
5657
st = os.stat(tocheck)
57-
print(f"_find_icon_path for {tocheck} found {st}")
58+
#print(f"_find_icon_path for {tocheck} found {st}")
5859
return tocheck
5960
except Exception as e:
60-
print(f"No app icon found in {tocheck}: {e}")
61+
#print(f"No app icon found in {tocheck}: {e}")
6162
return None
6263

6364
def _find_icon_path(self):

internal_filesystem/lib/mpos/ui/focus_direction.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,7 @@ def process_object(obj, depth=0):
141141
for objnr in range(focus_group.get_obj_count()):
142142
obj = focus_group.get_obj_by_index(objnr)
143143
process_object(obj)
144-
145-
# Result
146-
if closest_obj:
147-
print(f"Closest object in direction {direction_degrees}°:")
148-
mpos.util.print_lvgl_widget(closest_obj)
149-
else:
150-
#print(f"No object found in direction {direction_degrees}°")
151-
pass
152-
144+
153145
return closest_obj
154146

155147

@@ -209,6 +201,6 @@ def move_focus_direction(angle):
209201
return
210202
o = find_closest_obj_in_direction(focus_group, current_focused, angle, False)
211203
if o:
212-
print("move_focus_direction: moving focus to:")
213-
mpos.util.print_lvgl_widget(o)
204+
#print("move_focus_direction: moving focus to:")
205+
#mpos.util.print_lvgl_widget(o)
214206
emulate_focus_obj(focus_group, o)

0 commit comments

Comments
 (0)