hook reveng outputs to pm3 machinery, add regression test

This commit is contained in:
Philippe Teuwen 2020-05-07 14:20:49 +02:00
commit b9f6f096aa
4 changed files with 14 additions and 2 deletions

View file

@ -4,7 +4,7 @@
# Add -DPRESETS to compile with preset models (edit config.h)
MYSRCPATHS =
MYINCLUDES = -I../cliparser
MYINCLUDES = -I../cliparser -I../../src -I../../../include
MYCFLAGS =
MYDEFS = -DPRESETS
MYSRCS = \

View file

@ -30,6 +30,12 @@
#endif
#include "reveng.h"
#ifdef BMPTST
# undef fprintf
# undef puts
# undef fputs
#endif
#if (defined BMPTST) || (BMP_BIT < 32)
/* Size in bits of a bmp_t. Not necessarily a power of two. */
int bmpbit;

View file

@ -101,4 +101,10 @@
* *
*****************************************/
// Proxmark3 stdout/stderr hooking
#include "ui.h"
#define fprintf(stream, ...) PrintAndLogEx(INFO, __VA_ARGS__)
#define fputs(s, stream) PrintAndLogEx(INFO, "%s", s)
#define puts(s) PrintAndLogEx(SUCCESS, "%s", s)
#endif /* CONFIG_H */