Reject WROOM pintables taken from the bare ESP32 die map.

Module pad 1 is GND; extracting ANT/XTAL as pin 1 made every ground look like a shorted antenna.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-28 02:55:12 +02:00
co-authored by Cursor
parent e84418f975
commit ed75aabaf0
5 changed files with 46 additions and 2 deletions
+5 -1
View File
@@ -148,8 +148,12 @@ async def run_skill_locally(
errors: list[str] = []
if validator is not None:
check = dict(payload)
mpn_hint = re.search(r"MPN:\s*(\S+)", user_text or "", re.I)
if mpn_hint and "mpn" not in check:
check["mpn"] = mpn_hint.group(1).rstrip(".,;")
try:
errors = list(validator(payload) or [])
errors = list(validator(check) or [])
except Exception as exc:
log.warning(
"Skill %s validate.py raised: %s", skill_name, exc,