Removes condition that slave should be in boot strap mode when using FoE.

Adds error code to FOE_abort debug print out.
pull/7/head
Daniel Udd 2015-11-03 11:29:05 +01:00
parent c2a131aafb
commit 81b83b4324
1 changed files with 2 additions and 6 deletions

View File

@ -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)