Skip to content

Commit

Permalink
fix wrong bitwise operation
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Oct 17, 2023
1 parent 77137e5 commit 6b476e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authpp_lib/src/ccid_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ ByteBuffer CcidConnection::transcieve(const Message& message, int* transferred)
throw std::runtime_error(
fmt::format("Failed to receive data: {} {}", libusb_error_name(err), err));
};
needMoreTime = buffer.get<uint8_t>(7) && 0x80 == 0x80;
needMoreTime = (buffer.get<uint8_t>(7) & 0x80) == 0x80;
} while (needMoreTime);

buffer.setSize(reallyReceived);
Expand Down

0 comments on commit 6b476e6

Please sign in to comment.