FIX: leftover residue from sending different packages OLD/MIX/NG, is now cleaned before.

This commit is contained in:
iceman1001 2019-05-13 09:39:43 +02:00
parent 4929b16bf9
commit afabd59995

View file

@ -1633,6 +1633,8 @@ void __attribute__((noreturn)) AppMain(void) {
// Check if there is a packet available
PacketCommandNG rx;
memset(&rx.data, 0, sizeof(rx.data));
int ret = receive_ng(&rx);
if (ret == PM3_SUCCESS) {
PacketReceived(&rx);