Commit 53d7cc0
Optimize EEPROM::put (#2487)
* EEPROM Library:
Improved put function, compare data and only in case are different set _dirty flag, copy the data
* It will grant that the _dirty flag is reset only at EEPROM.commit() and no changes are lost1 parent 9fce9c7 commit 53d7cc0
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | | - | |
57 | | - | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments