Skip to content

Commit 1510521

Browse files
authored
Update arduino.py
1 parent 7c3a095 commit 1510521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/frameworks/arduino.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ def shorthen_includes(env, node):
234234
def get_frameworks_in_current_env():
235235
current_env_section = "env:" + env["PIOENV"]
236236
# Check if the "framework" option exists in the current environment
237-
if "framework" in projectconfig.options(current_env_section):
237+
if "framework" in config.options(current_env_section):
238238
# Get the value of the 'framework' option
239-
frameworks = projectconfig.get(current_env_section, "framework", "")
239+
frameworks = config.get(current_env_section, "framework", "")
240240
# Split comma-separated frameworks and return them as a list
241241
return frameworks.split(",")
242242
# If no frameworks are found, return an empty list

0 commit comments

Comments
 (0)