Index: trunk/src_plugins/export_openems/openems_xml.c
===================================================================
--- trunk/src_plugins/export_openems/openems_xml.c (revision 32045)
+++ trunk/src_plugins/export_openems/openems_xml.c (revision 32046)
@@ -41,7 +41,7 @@
{
rnd_layergrp_id_t from, to;
- if (pcb_layergrp_list(ctx->pcb, PCB_LYT_TOP|PCB_LYT_COPPER, &from, 1) != 1) {
+ if (pcb_layergrp_list(ctx->pcb, PCB_LYT_BOTTOM|PCB_LYT_COPPER, &from, 1) != 1) {
ctx->elevation = 0;
rnd_message(RND_MSG_ERROR, "Missing bottom copper layer group - can not simulate\n");
return -1;
@@ -230,8 +230,8 @@
rnd_fprintf(ctx->f, " \n", ctx->port_id, resistance);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n", PRIO_PORT);
- rnd_fprintf(ctx->f, " \n", x, -y, e2);
- rnd_fprintf(ctx->f, " \n", x, -y, e1);
+ rnd_fprintf(ctx->f, " \n", x, -y, e1);
+ rnd_fprintf(ctx->f, " \n", x, -y, e2);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
@@ -239,8 +239,8 @@
rnd_fprintf(ctx->f, " \n", ctx->port_id);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
- rnd_fprintf(ctx->f, " \n", x, -y, e2);
- rnd_fprintf(ctx->f, " \n", x, -y, e1);
+ rnd_fprintf(ctx->f, " \n", x, -y, e1);
+ rnd_fprintf(ctx->f, " \n", x, -y, e2);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
@@ -259,8 +259,8 @@
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
- rnd_fprintf(ctx->f, " \n", x, -y, e2);
- rnd_fprintf(ctx->f, " \n", x, -y, e1);
+ rnd_fprintf(ctx->f, " \n", x, -y, e1);
+ rnd_fprintf(ctx->f, " \n", x, -y, e2);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");