Optimize EEPROM::put (#2487)
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 lost

Juppit/Arduino,lrmoreno007/Arduino,jes/Arduino,lrmoreno007/Arduino,hallard/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,esp8266/Arduino,Adam5Wu/Arduino,esp8266/Arduino,esp8266/Arduino,wemos/Arduino,jes/Arduino,me-no-dev/Arduino,lrmoreno007/Arduino,hallard/Arduino,wemos/Arduino,esp8266/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,me-no-dev/Arduino,Adam5Wu/Arduino,sticilface/Arduino,me-no-dev/Arduino,jes/Arduino,sticilface/Arduino,Juppit/Arduino,hallard/Arduino,Adam5Wu/Arduino,Juppit/Arduino,Lan-Hekary/Arduino,hallard/Arduino,wemos/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,Juppit/Arduino,lrmoreno007/Arduino,me-no-dev/Arduino,wemos/Arduino,jes/Arduino,jes/Arduino,lrmoreno007/Arduino,Adam5Wu/Arduino,me-no-dev/Arduino,wemos/Arduino,Lan-Hekary/Arduino,hallard/Arduino,sticilface/Arduino,Adam5Wu/Arduino,Juppit/Arduino