I'm using SOEM's firm_update and SOES for FOE implementation. For larger file transfers requiring multiple FOE_Data.req, after executing the FOE_data() function, FOE_init() incorrectly sets the state machine back to FOE_READY and resets foepacket to 0. This unexpected initialization disrupts the process.
Here's the problematic code segment:
I'm using SOEM's firm_update and SOES for FOE implementation. For larger file transfers requiring multiple FOE_Data.req, after executing the FOE_data() function, FOE_init() incorrectly sets the state machine back to FOE_READY and resets foepacket to 0. This unexpected initialization disrupts the process. Here's the problematic code segment: