Skip to content

Commit 67db70b

Browse files
Fix error when building with Werror flag (#87)
- Fix issue #86 when building code with flag `-Werror`, which causes `maybe-uninitialized` error Co-authored-by: abobija <[email protected]>
1 parent ebd656d commit 67db70b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rc522_picc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ esp_err_t rc522_picc_select(const rc522_handle_t rc522, rc522_picc_uid_t *out_ui
300300
uint8_t uid_index; // The first index in uid->uidByte[] that is used in the current Cascade Level.
301301
int8_t current_level_known_bits; // The number of known UID bits in the current Cascade Level.
302302
uint8_t buffer[9]; // The SELECT/ANTICOLLISION commands uses a 7 byte standard frame + 2 bytes CRC_A
303-
uint8_t buffer_used; // The number of bytes used in the buffer, ie the number of bytes to transfer to the FIFO.
304-
uint8_t rx_align; // Used in BitFramingReg. Defines the bit position for the first bit received.
305-
uint8_t tx_last_bits; // Used in BitFramingReg. The number of valid bits in the last transmitted byte.
303+
uint8_t buffer_used; // The number of bytes used in the buffer, ie the number of bytes to transfer to the FIFO.
304+
uint8_t rx_align; // Used in BitFramingReg. Defines the bit position for the first bit received.
305+
uint8_t tx_last_bits = 0; // Used in BitFramingReg. The number of valid bits in the last transmitted byte.
306306
uint8_t *response_buffer;
307307
uint8_t response_length;
308308

0 commit comments

Comments
 (0)