From 81b83b43243b0517a752397acfead32f8ecfbdc3 Mon Sep 17 00:00:00 2001 From: Daniel Udd Date: Tue, 3 Nov 2015 11:29:05 +0100 Subject: [PATCH] Removes condition that slave should be in boot strap mode when using FoE. Adds error code to FOE_abort debug print out. --- soes/esc_foe.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/soes/esc_foe.c b/soes/esc_foe.c index 83dcc5e..15ca15e 100644 --- a/soes/esc_foe.c +++ b/soes/esc_foe.c @@ -251,7 +251,7 @@ void FOE_abort (uint32_t code) } /* Nothing we can do if we can't get an outbound mailbox. */ } - DPRINT("FOE_abort\n"); + DPRINT("FOE_abort: 0x%X\n", code); FOE_init (); } @@ -475,7 +475,7 @@ void FOE_data () if (packet != FOEvar.foepacket) { - DPRINT("FOE_data packet error,packet: %d foeheaader.packet: %d\n",packet,FOEvar.foepacket); + DPRINT("FOE_data packet error,packet: %d foeheader.packet: %d\n",packet,FOEvar.foepacket); FOE_abort (FOE_ERR_PACKETNO); } else if (data_len == 0) @@ -604,10 +604,6 @@ void ESC_foeprocess (void) { FOE_abort (MBXERR_SIZETOOSHORT); } - else if (ESCvar.ALstatus != ESCboot) - { - FOE_abort (FOE_ERR_BOOTSTRAPONLY); - } else { switch (foembx->foeheader.opcode)