Apologies, when working on the previous patch, I missed that the stack needed to be aligned to 32-bit addresses, not 16-bit addresses due to the use of pointers in the stack. I've got that fixed now and I haven't been able to break it again.
I've also made some small clean-ups with respect to AVR as the default EEPROM config option and avr/pgmspace.h include do not play nice with the ESP8266. I've minor #ifdefs to help make sensible choices.
One last thing, I've tidied the comments a little bit so that the style is a little bit more consistent - this is mostly just capitalisation at the start of the comment.
Apologies, when working on the previous patch, I missed that the stack needed to be aligned to 32-bit addresses, not 16-bit addresses due to the use of pointers in the stack. I've got that fixed now and I haven't been able to break it again.
I've also made some small clean-ups with respect to AVR as the default EEPROM config option and avr/pgmspace.h include do not play nice with the ESP8266. I've minor #ifdefs to help make sensible choices.
One last thing, I've tidied the comments a little bit so that the style is a little bit more consistent - this is mostly just capitalisation at the start of the comment.