Index: write.c =================================================================== --- write.c (revision 7740) +++ write.c (revision 7741) @@ -173,7 +173,7 @@ fputs("InternalUnit 0.000100 INCH\n",FP); /* decimil is the default v1 kicad legacy unit */ /* here we define the copper layers in the exported kicad file */ - physicalLayerCount = pcb_layer_group_list(PCB, PCB_LYT_COPPER, NULL, 0); + physicalLayerCount = pcb_layergrp_list(PCB, PCB_LYT_COPPER, NULL, 0); fputs("Layers ",FP); kicadLayerCount = physicalLayerCount;