Add LF before first pm3 dbg msg when there is a pending prompt

This commit is contained in:
Philippe Teuwen
2020-08-14 00:14:46 +02:00
parent 6d3c1d0223
commit b59becbeb6
4 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "uart/uart.h"
#include "ui.h"
#include "crc16.h"
#include "util.h" // g_pendingPrompt
#include "util_posix.h" // msclock
#include "util_darwin.h" // en/dis-ableNapp();
@@ -289,6 +290,10 @@ static void PacketResponseReceived(PacketResponseNG *packet) {
}
if (flag & FLAG_LOG) {
if (g_pendingPrompt) {
PrintAndLogEx(NORMAL, "");
g_pendingPrompt = false;
}
//PrintAndLogEx(NORMAL, "[" _MAGENTA_("pm3") "] ["_BLUE_("#")"] " "%s", s);
PrintAndLogEx(NORMAL, "[" _BLUE_("#") "] %s", s);
} else {