mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
refactor: rename uses_3v3 to uses_vapwr
The flag enables a second power supply (VAPWR), not necessarily 3.3V (gf180's core is already 3v3), so "uses_3v3" no longer accurately describes its purpose. Rename it across project_info, precheck, project and shuttle, and update the validation message accordingly. The legacy "uses_3v3" key is still accepted when reading info.yaml, so existing project configs keep working.
This commit is contained in:
+7
-4
@@ -131,10 +131,13 @@ class ProjectInfo:
|
||||
self.analog_pins: int = analog_pins
|
||||
self.is_analog: bool = self.analog_pins > 0
|
||||
|
||||
uses_3v3: bool = project_section.get("uses_3v3", False)
|
||||
self.uses_3v3: bool = uses_3v3
|
||||
if uses_3v3 and not self.is_analog:
|
||||
errors.append("Projects with 3v3 power need at least one analog pin")
|
||||
# "uses_3v3" is the legacy name for "uses_vapwr"; still accepted for compat.
|
||||
uses_vapwr: bool = project_section.get(
|
||||
"uses_vapwr", project_section.get("uses_3v3", False)
|
||||
)
|
||||
self.uses_vapwr: bool = uses_vapwr
|
||||
if uses_vapwr and not self.is_analog:
|
||||
errors.append("Projects with VAPWR power need at least one analog pin")
|
||||
|
||||
language = project_section.get("language")
|
||||
if language is None:
|
||||
|
||||
Reference in New Issue
Block a user