First version of Federica courses firmware
Move the network code outside of main. Clean it a lot. Correct the timing issues between pkt_send / mac re-configuration