#include "uart.h"
#include "ui.h"
#include "common.h"
+#include "util_darwin.h"
#include "util_posix.h"
UsbCommand rx;
UsbCommand *prx = ℞
+#if defined(__MACH__) && defined(__APPLE__)
+ disableAppNap("Proxmark3 polling UART");
+#endif
+
while (conn->run) {
rxlen = 0;
bool ACK_received = false;
pthread_mutex_unlock(&txBufferMutex);
}
+#if defined(__MACH__) && defined(__APPLE__)
+ enableAppNap();
+#endif
+
pthread_exit(NULL);
return NULL;
}
// Clean up our state
sp = NULL;
serial_port_name = NULL;
+#ifdef __BIONIC__
memset(&USB_communication_thread, 0, sizeof(pthread_t));
+#endif
}