MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / get_idf_target

Function get_idf_target

Buildscripts/release-sdk-current.py:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import sys
7
8def get_idf_target():
9 try:
10 with open("sdkconfig", "r") as f:
11 for line in f:
12 if line.startswith("CONFIG_IDF_TARGET="):
13 # CONFIG_IDF_TARGET="esp32s3" -> esp32s3
14 return line.split('=')[1].strip().strip('"')
15 except FileNotFoundError:
16 print("sdkconfig not found")
17 return None
18 return None
19
20def main():
21 # 1. Get idf_target

Callers 1

mainFunction · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected