(s)
| 131 | |
| 132 | /* 6 — Verify chip family */ |
| 133 | const norm = (s) => s.replace(/[-_ ]/g, "").toUpperCase(); |
| 134 | if (!norm(chip).startsWith(norm(build.chipFamily))) { |
| 135 | throw new Error( |
| 136 | "Wrong chip! Expected " + build.chipFamily + " but got " + chip + "." |