Avoid flash load image for the empty contact-path cache
This commit is contained in:
1 parent
dcabcb8cb2
commit
53835c0793
4 files changed
+73
No files matched your search
@@ -170,6 +170,11 @@ class ContactPathPool : public ContactPathStorage {
|
||||
}
|
||||
|
||||
public:
|
||||
// Construct the empty cache on first use instead of storing a flash load
|
||||
// image of every slot's NONE/255 sentinels and the vtable pointer. Keep the
|
||||
// member defaults for both initial construction and Slot() resets.
|
||||
ContactPathPool() {}
|
||||
|
||||
void attach(ContactPathBackend* backend) override { _backend = backend; }
|
||||
uint16_t bind(uint16_t location, const uint8_t path[64]) override {
|
||||
if (location == NONE) return NONE;
|
||||
|
||||
Reference in new issue
Block a user