Index: src_plugins/export_openems/openems_xml.c
===================================================================
--- src_plugins/export_openems/openems_xml.c (revision 32013)
+++ src_plugins/export_openems/openems_xml.c (revision 32014)
@@ -45,7 +45,7 @@
{
rnd_layergrp_id_t from, to;
- if (pcb_layergrp_list(ctx->pcb, PCB_LYT_BOTTOM|PCB_LYT_COPPER, &from, 1) != 1) {
+ if (pcb_layergrp_list(ctx->pcb, PCB_LYT_TOP|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;
@@ -243,8 +243,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, e1);
- rnd_fprintf(ctx->f, " \n", x, -y, e2);
+ rnd_fprintf(ctx->f, " \n", x, -y, e2);
+ rnd_fprintf(ctx->f, " \n", x, -y, e1);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
@@ -252,8 +252,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, e1);
- rnd_fprintf(ctx->f, " \n", x, -y, e2);
+ rnd_fprintf(ctx->f, " \n", x, -y, e2);
+ rnd_fprintf(ctx->f, " \n", x, -y, e1);
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");
rnd_fprintf(ctx->f, " \n");