From 6fbfb4c27c6c7a43419aeb3d9506eb94c811c85b Mon Sep 17 00:00:00 2001 From: ayushuk Date: Sat, 18 May 2024 14:02:39 -0700 Subject: [PATCH] apply liblvgl as a default template for pros 4 --- pros/conductor/conductor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pros/conductor/conductor.py b/pros/conductor/conductor.py index 4b195283..cc01f4f0 100644 --- a/pros/conductor/conductor.py +++ b/pros/conductor/conductor.py @@ -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 @@ -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