From 15558070adaa76c7b3aa4c5968b9a3b5c6de09dc Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 18 Apr 2019 10:41:11 +0200 Subject: [PATCH] Fix receive_ng returned val test --- armsrc/appmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 57189342a..adbf6b315 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -1569,7 +1569,7 @@ void __attribute__((noreturn)) AppMain(void) { // Check if there is a usb packet available if (usb_poll_validate_length()) { UsbCommandNG rx; - if (receive_ng(&rx) == 0) { + if (receive_ng(&rx) == PM3_SUCCESS) { UsbPacketReceived(&rx); } else { Dbprintf("Error in frame reception");