FreeCalypso > hg > ueda-linux
view pads2gpcb/silkselect.c @ 153:c147a730271f
KWH020ST23-F01.fp corrections:
1) Y geometry for the solder pads was wrong
2) add silk dots matching alignment holes in the FPC tail
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 24 Jun 2021 06:38:02 +0000 |
| parents | 9d7e2937883d |
| children |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #define MAX_LEVEL_SELECT 8 static int select_array[MAX_LEVEL_SELECT]; static int num_select; select_drawlevel_for_silk(level) { if (num_select >= MAX_LEVEL_SELECT) { fprintf(stderr, "Error: MAX_LEVEL_SELECT exceeded\n"); exit(1); } select_array[num_select++] = level; return(0); } is_drawlevel_selected(level) { int i; for (i = 0; i < num_select; i++) if (select_array[i] == level) return(1); return(0); }
