usart working... when debugged...

This commit is contained in:
Philippe Teuwen 2019-04-20 19:17:32 +02:00
commit 6e744043f5
9 changed files with 162 additions and 118 deletions

View file

@ -227,8 +227,8 @@ int16_t receive_ng(PacketCommandNG *rx) {
#ifdef WITH_FPC_HOST
// Check if there is a FPC packet available
return receive_ng_internal(rx, usart_read_ng, true);
#else
return PM3_ENODATA;
if (usart_rxdata_available() > 0)
return receive_ng_internal(rx, usart_read_ng, true);
#endif
return PM3_ENODATA;
}