User board-specific terms in error messages #3886

This commit is contained in:
rusefillc 2022-02-03 15:18:07 -05:00
parent 9d3ff33388
commit 0047805ce4
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -158,6 +158,8 @@ public class PinoutLogic {
getTsNameByIdFile.append("\tswitch(brainPin) {\n");
for (Map.Entry</*id*/String, /*tsName*/String> e : tsNameById.entrySet()) {
if (!e.getKey().startsWith("GPIO")) // we only support GPIO pins at the moment no support for ADC
continue;
getTsNameByIdFile.append("\t\tcase " + e.getKey() + ": return " + quote(e.getValue()) + ";\n");
}