I think I got it. I need to come up with a reliable way to reproduce, but if you have a flash page that starts with 0xFF but then doesn't end with it, then a file that fits within that area of 0xFF, compact can get in a situation where it thinks the page is empty but it's not.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think I got it. I need to come up with a reliable way to reproduce, but if you have a flash page that starts with 0xFF but then doesn't end with it, then a file that fits within that area of 0xFF, compact can get in a situation where it thinks the page is empty but it's not.