From 2d95a58b3764e39de5e3440e6576effa55514f69 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Mon, 9 Dec 2024 21:12:48 -0700 Subject: [PATCH] fix function def --- esphome/components/nfc/nfc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/nfc/nfc.cpp b/esphome/components/nfc/nfc.cpp index 71ef842b37..f94cdc79c2 100644 --- a/esphome/components/nfc/nfc.cpp +++ b/esphome/components/nfc/nfc.cpp @@ -31,7 +31,7 @@ std::string format_bytes(std::vector &bytes) { return std::string(buf); } -uint8_t is_ntag(const std::vector &first_page) { +bool is_ntag(const std::vector &first_page) { // NTAG typically has a capability container (CC) starting at byte 3 // The CC for NTAG is usually 0xE1 0x10 followed by a type-specific byte if (first_page.size() >= 16 && first_page[3] == 0xE1 && first_page[4] == 0x10) {