This commit is contained in:
iceman1001 2019-04-08 10:13:15 +02:00
parent a1d9b574fd
commit 7f0b1eacd1

View file

@ -225,7 +225,7 @@ __attribute__((force_align_arg_pointer))
#endif
#endif
*uart_communication(void *targ) {
communication_arg_t *conn = (communication_arg_t *)targ;
communication_arg_t *connection = (communication_arg_t *)targ;
size_t rxlen, totallen = 0;
UsbCommand rx;
UsbCommand *prx = ℞
@ -236,7 +236,7 @@ __attribute__((force_align_arg_pointer))
disableAppNap("Proxmark3 polling UART");
#endif
while (conn->run) {
while (connection->run) {
rxlen = 0;
bool ACK_received = false;
@ -263,7 +263,7 @@ __attribute__((force_align_arg_pointer))
pthread_mutex_lock(&txBufferMutex);
if (conn->block_after_ACK) {
if (connection->block_after_ACK) {
// if we just received an ACK, wait here until a new command is to be transmitted
if (ACK_received) {
while (!txBuffer_pending) {