1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-16 07:40:29 +01:00

fix function def

This commit is contained in:
Spencer Owen 2024-12-09 21:12:48 -07:00
parent 734afde9da
commit 2d95a58b37
No known key found for this signature in database

View File

@ -31,7 +31,7 @@ std::string format_bytes(std::vector<uint8_t> &bytes) {
return std::string(buf); return std::string(buf);
} }
uint8_t is_ntag(const std::vector<uint8_t> &first_page) { bool is_ntag(const std::vector<uint8_t> &first_page) {
// NTAG typically has a capability container (CC) starting at byte 3 // 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 // 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) { if (first_page.size() >= 16 && first_page[3] == 0xE1 && first_page[4] == 0x10) {