Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-filesystem by
Diff: main.cpp
- Revision:
- 12:a07d0af60cc6
- Parent:
- 10:38d6b74b0eb7
- Child:
- 13:a8f6b52b6819
diff -r 656a96b9981b -r a07d0af60cc6 main.cpp
--- a/main.cpp Fri Mar 09 21:30:16 2018 +0000
+++ b/main.cpp Thu Apr 05 15:30:17 2018 +0100
@@ -72,8 +72,9 @@
int main() {
printf("--- Mbed OS filesystem example ---\n");
- // Setup the irq in case we want to use it
- irq.fall(erase);
+ // Setup the erase event on button press, use the event queue
+ // to avoid running in interrupt context
+ irq.fall(mbed_event_queue()->event(erase));
// Try to mount the filesystem
printf("Mounting the filesystem... ");
