1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

Fix PN532 for IDF 5 and ultralight enhancements (#5352)

This commit is contained in:
Keith Burzinski
2023-09-07 04:48:44 -05:00
committed by GitHub
parent 87395d259e
commit ab872b075a
3 changed files with 71 additions and 58 deletions

View File

@@ -54,7 +54,7 @@ uint8_t get_mifare_classic_ndef_start_index(std::vector<uint8_t> &data) {
bool decode_mifare_classic_tlv(std::vector<uint8_t> &data, uint32_t &message_length, uint8_t &message_start_index) {
uint8_t i = get_mifare_classic_ndef_start_index(data);
if (i < 0 || data[i] != 0x03) {
if (data[i] != 0x03) {
ESP_LOGE(TAG, "Error, Can't decode message length.");
return false;
}