Workshop example
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Revision 34:a5724eeaaf9d, committed 2019-03-27
- Comitter:
- screamer
- Date:
- Wed Mar 27 19:05:34 2019 +0000
- Parent:
- 33:cfd9430e7d1e
- Child:
- 35:42b3fba640b1
- Commit message:
- Remove unnecessary macros
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Mar 27 17:47:34 2019 +0000 +++ b/main.cpp Wed Mar 27 19:05:34 2019 +0000 @@ -251,15 +251,11 @@ if (storage_status != 0) { printf("Storage mounting failed.\n"); } -#if USE_BUTTON == 1 // If the User button is pressed ons start, then format storage. bool btn_pressed = (button.read() == MBED_CONF_APP_BUTTON_PRESSED_STATE); if (btn_pressed) { printf("User button is pushed on start...\n"); } -#else - bool btn_pressed = FALSE; -#endif /* USE_BUTTON */ if (storage_status || btn_pressed) { printf("Formatting the storage...\n");