fix(wafer): derive family sensor counts from YAML layouts, bound frame decode to layout

This commit is contained in:
jack
2026-07-13 11:52:56 -07:00
parent c76cddc5fd
commit 92ff6fbd14
5 changed files with 48 additions and 31 deletions
+1 -11
View File
@@ -20,17 +20,7 @@ log = logging.getLogger(__name__)
def csv_column_count(family_code: str) -> int:
"""Return the number of columns to display for a family code."""
mapping = {
"A": 48,
"E": 48,
"P": 48,
"B": 29,
"C": 29,
"D": 29,
"F": 22,
"X": 80,
}
return mapping.get(family_code, 0)
return sensor_count_for(family_code)
def _hex_to_binary(hex_str: str) -> list[int]: