Handle unaligned address in EspClass::flashWrite u8 overload by mcspr · Pull Request #8605 · esp8266/Arduino (original) (raw)

another approach at fixing #8372
resolves #8588 @fabianoriccardi

instead of changing the branch, just break the flow on a lower level when actually writing things
both unaligned src and dest are placed into buffer. this copies behaviour of RTOS functions that I mentioned in the issue

example sketch seems to work. I just hope I did not break something else while fixing spiffs
(...and geez, how much unaligned writes it does. no wonder it's slow...)