rfid-reader: take the NDEF records by reference

get_records() now returns a StaticVector of unique_ptr, which can't be copied.
This commit is contained in:
randy committed 2026-09-30 12:15:49 +02:00
1 parent 46cf3b1fe8
commit a005b940b2
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ pn532_i2c:
id(info)="";
if (tag.has_ndef_message()) {
auto message = tag.get_ndef_message();
auto records = message->get_records();
const auto &records = message->get_records();
for (auto &record : records) {
std::string payload = record->get_payload();
std::string type = record->get_type();