Remove extraneous parentheses.

pull/11392/head
Hugues Kamba 2019-09-03 09:29:56 +01:00
parent 8c22bbbbc8
commit 9715587042
3 changed files with 9 additions and 3 deletions

View File

@ -616,7 +616,7 @@ bool USBDevice::_request_setup()
bool success = false;
/* Process standard requests */
if ((_transfer.setup.bmRequestType.Type == STANDARD_TYPE)) {
if (_transfer.setup.bmRequestType.Type == STANDARD_TYPE) {
switch (_transfer.setup.bRequest) {
case GET_STATUS:
success = _request_get_status();

View File

@ -537,7 +537,10 @@ void pn512_initiator_isob_anticollision_reqb(pn512_t *pPN512)
ac_buffer_builder_write_nu8(pDataOutBldr, REQB);
ac_buffer_builder_write_nu8(pDataOutBldr, 0x00); // AFI: All card types should respond
uint8_t wup = 0;
if ((pPN512->anticollision.iso_b.slots_num_exponent == 0)) { //&& (pPN512->anticollision.iso_b.slot_number == 0))
if (
pPN512->anticollision.iso_b.slots_num_exponent == 0
//&& (pPN512->anticollision.iso_b.slot_number == 0)
) {
wup |= 0x8; // Send Wake-Up command on first iteration
}
ac_buffer_builder_write_nu8(pDataOutBldr, wup | (pPN512->anticollision.iso_b.slots_num_exponent & 0x7)); // Param: number of slots

View File

@ -107,7 +107,10 @@ nfc_err_t pn512_framing_set(pn512_t *pPN512, nfc_framing_t framing)
return NFC_ERR_UNSUPPORTED;
}
#if 1
if ((pPN512->framing == nfc_framing_initiator_a_106) /*|| (pPN512->framing == pn512_framing_target_iso14443a_106k)*/) {
if (
pPN512->framing == nfc_framing_initiator_a_106
//|| (pPN512->framing == pn512_framing_target_iso14443a_106k)
) {
//Enable 100% ASK Modulation
pn512_register_write(pPN512, PN512_REG_TXAUTO, pn512_register_read(pPN512, PN512_REG_TXAUTO) | 0x40);
} else {