Skip to content

Commit

Permalink
馃毟 Apply liblvgl as a default template for PROS 4 (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushuk committed May 18, 2024
1 parent 5381cbf commit 025a945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pros/conductor/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, file=None):
needs_saving = True
if self.default_libraries is None:
self.default_libraries = {
'v5': ['okapilib'],
'v5': ['okapilib', 'liblvgl'],
'cortex': []
}
needs_saving = True
Expand Down Expand Up @@ -386,6 +386,9 @@ def new_project(self, path: str, no_default_libs: bool = False, **kwargs) -> Pro
if kwargs['version'][0] == '>' or kwargs['version'][0] == '4':
libraries[proj.target].remove('okapilib')

if 'liblvgl' in libraries[proj.target] and kwargs['version'][0] != '>' and kwargs['version'][0] != '4':
libraries[proj.target].remove('liblvgl')

for library in libraries[proj.target]:
try:
# remove kernel version so that latest template satisfying query is correctly selected
Expand Down

0 comments on commit 025a945

Please sign in to comment.