Initial reading for Step Counter not started with zero, tried EEPROM, now the code is not working anymore

Check this link out, the part does not have EEPROM but it is simulated. ESP_EEPROM is data persistent when flashing new rev or new program? - #2 by gilshultz