File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -2011,6 +2011,10 @@ msgid ""
2011
2011
"exit safe mode."
2012
2012
msgstr ""
2013
2013
2014
+ #: ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h
2015
+ msgid "The central button was pressed at start up.\n"
2016
+ msgstr ""
2017
+
2014
2018
#: ports/nrf/boards/aramcon2_badge/mpconfigboard.h
2015
2019
msgid "The left button was pressed at start up.\n"
2016
2020
msgstr ""
@@ -3839,10 +3843,6 @@ msgstr ""
3839
3843
msgid "pow() with 3 arguments requires integers"
3840
3844
msgstr ""
3841
3845
3842
- #: ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h
3843
- msgid "The central button was pressed at start up.\n"
3844
- msgstr ""
3845
-
3846
3846
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
3847
3847
msgid "pull masks conflict with direction masks"
3848
3848
msgstr ""
Original file line number Diff line number Diff line change @@ -146,17 +146,17 @@ void print_safe_mode_message(safe_mode_t reason) {
146
146
147
147
switch (reason ) {
148
148
case USER_SAFE_MODE :
149
- #ifdef BOARD_USER_SAFE_MODE_ACTION
149
+ #if defined( BOARD_USER_SAFE_MODE_ACTION )
150
150
message = BOARD_USER_SAFE_MODE_ACTION ;
151
151
#elif defined(CIRCUITPY_BOOT_BUTTON )
152
152
message = translate ("The BOOT button was pressed at start up.\n" );
153
153
#endif
154
- if ( message != NULL ) {
155
- // Output a user safe mode string if it's set.
156
- serial_write_compressed (message );
157
- message = translate ("To exit, please reset the board without requesting safe mode." );
158
- // The final piece is printed below.
159
- }
154
+ # if defined( BOARD_USER_SAFE_MODE_ACTION ) || defined( CIRCUITPY_BOOT_BUTTON )
155
+ // Output a user safe mode string if it's set.
156
+ serial_write_compressed (message );
157
+ message = translate ("To exit, please reset the board without requesting safe mode." );
158
+ // The final piece is printed below.
159
+ #endif
160
160
break ;
161
161
case MANUAL_SAFE_MODE :
162
162
message = translate ("You pressed the reset button during boot. Press again to exit safe mode." );
You can’t perform that action at this time.
0 commit comments