double CursorScaleFactor = 1;
int PlotGridX=0, PlotGridY=0, PlotGridXdefault= 64, PlotGridYdefault= 64, CursorCPos= 0, CursorDPos= 0;
-int offline;
-int flushAfterWrite = 0; //buzzy
+bool flushAfterWrite = false; //buzzy
int GridOffset = 0;
bool GridLocked = false;
bool showDemod = true;
static char *logfilename = "proxmark3.log";
#ifndef EXTERNAL_PRINTANDLOG
-// Declared in proxmark3.c
-extern pthread_mutex_t print_lock;
+static pthread_mutex_t print_lock = PTHREAD_MUTEX_INITIALIZER;
void PrintAndLog(char *fmt, ...)
{
}
va_end(argptr2);
- if (flushAfterWrite == 1) //buzzy
+ if (flushAfterWrite) //buzzy
{
fflush(NULL);
}
{
logfilename = fn;
}
+
+void SetFlushAfterWrite(bool flush_after_write) {
+ flushAfterWrite = flush_after_write;
+}
+