Skip to content

Commit 025a945

Browse files
authored
🚸 Apply liblvgl as a default template for PROS 4 (#356)
1 parent 5381cbf commit 025a945

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pros/conductor/conductor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(self, file=None):
107107
needs_saving = True
108108
if self.default_libraries is None:
109109
self.default_libraries = {
110-
'v5': ['okapilib'],
110+
'v5': ['okapilib', 'liblvgl'],
111111
'cortex': []
112112
}
113113
needs_saving = True
@@ -386,6 +386,9 @@ def new_project(self, path: str, no_default_libs: bool = False, **kwargs) -> Pro
386386
if kwargs['version'][0] == '>' or kwargs['version'][0] == '4':
387387
libraries[proj.target].remove('okapilib')
388388

389+
if 'liblvgl' in libraries[proj.target] and kwargs['version'][0] != '>' and kwargs['version'][0] != '4':
390+
libraries[proj.target].remove('liblvgl')
391+
389392
for library in libraries[proj.target]:
390393
try:
391394
# remove kernel version so that latest template satisfying query is correctly selected

0 commit comments

Comments
 (0)