So I have some code that is reading from a sensor and logging data to the SD card.
Now it might be a bad idea, but I put the writing to the SD card inside the interrupt for simplicity, for the most part this seems to work flawlessly. However, i’m worried that there might be events missed if it is still busy writing when the input changes.
So the question I’m asking here: Is it the case that interrupts, once entered, cannot be interrupted by other interrupts, so that events might be missed?
Also welcome any other pointers. Should I rewrite so that file output is not in the interrupt? My guess here would be to write to some variable to use as a buffer that gets written to SD card on a timer.