Would have thought the ECU memory would be non-volatile to allow for battery changes but this may only be short term. Otherwise dropping down to essentially a completely flat battery would most likely kill the memory.
It will unfortunately have taken a big chunk out of battery life as well.