Fix receive_ng returned val test

This commit is contained in:
Philippe Teuwen 2019-04-18 10:41:11 +02:00
commit 15558070ad

View file

@ -1569,7 +1569,7 @@ void __attribute__((noreturn)) AppMain(void) {
// Check if there is a usb packet available // Check if there is a usb packet available
if (usb_poll_validate_length()) { if (usb_poll_validate_length()) {
UsbCommandNG rx; UsbCommandNG rx;
if (receive_ng(&rx) == 0) { if (receive_ng(&rx) == PM3_SUCCESS) {
UsbPacketReceived(&rx); UsbPacketReceived(&rx);
} else { } else {
Dbprintf("Error in frame reception"); Dbprintf("Error in frame reception");