Skip to content

Commit 9cf1d03

Browse files
authored
Fix condition to check Arduino libraries cache
1 parent 0af6eb5 commit 9cf1d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/frameworks/component_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ def _convert_lib_name_to_include(self, lib_name: str) -> str:
837837
Converted include directory name for path removal
838838
"""
839839
# Load Arduino Core Libraries on first call
840-
if not hasattr(self, '_arduino_libraries_cache'):
840+
if self._arduino_libraries_cache is None:
841841
self._arduino_libraries_cache = self._get_arduino_core_libraries()
842842

843843
lib_name_lower = lib_name.lower()

0 commit comments

Comments
 (0)