mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-05 20:38:27 +02:00
Fix some NFC/PN532 crashes (#4678)
* Add + use some constants, fix some crashes * Fix PN532 crashes
This commit is contained in:
@@ -42,8 +42,8 @@ class NdefRecord {
|
||||
virtual const std::string &get_payload() const { return this->payload_; };
|
||||
|
||||
virtual std::vector<uint8_t> get_encoded_payload() {
|
||||
std::vector<uint8_t> empty_payload;
|
||||
return empty_payload;
|
||||
std::vector<uint8_t> payload(this->payload_.begin(), this->payload_.end());
|
||||
return payload;
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user