Size reductions (attempts, at the very least)
This commit is contained in:
parent
f6e7edc900
commit
a61a9f4bde
|
@ -35,12 +35,6 @@ msgid ""
|
||||||
"https://github.com/adafruit/circuitpython/issues\n"
|
"https://github.com/adafruit/circuitpython/issues\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
|
||||||
msgid ""
|
|
||||||
"\n"
|
|
||||||
"WARNING: "
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
msgid " File \"%q\""
|
msgid " File \"%q\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -2369,7 +2363,7 @@ msgid "Voltage read timed out"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
msgid "WARNING: Your code filename has two extensions\n"
|
msgid "WARNING: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/watchdog/WatchDogTimer.c
|
#: ports/atmel-samd/common-hal/watchdog/WatchDogTimer.c
|
||||||
|
@ -2430,6 +2424,10 @@ msgid ""
|
||||||
"You pressed the reset button during boot. Press again to exit safe mode."
|
"You pressed the reset button during boot. Press again to exit safe mode."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.c
|
||||||
|
msgid "Your code filename has two extensions\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: supervisor/shared/micropython.c
|
#: supervisor/shared/micropython.c
|
||||||
msgid "[truncated due to length]"
|
msgid "[truncated due to length]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
9
main.c
9
main.c
|
@ -150,7 +150,8 @@ STATIC vm_memory_t allocate_vm_memory(void) {
|
||||||
// Check if value is valid
|
// Check if value is valid
|
||||||
pystack_size = pystack_size - pystack_size % sizeof(size_t); // Round down to multiple of 4.
|
pystack_size = pystack_size - pystack_size % sizeof(size_t); // Round down to multiple of 4.
|
||||||
if (pystack_size < 384) {
|
if (pystack_size < 384) {
|
||||||
serial_write_compressed(translate("\nWARNING: "));
|
serial_write("\n");
|
||||||
|
serial_write_compressed(translate("WARNING: "));
|
||||||
serial_write_compressed(translate("Invalid CIRCUITPY_PYSTACK_SIZE"));
|
serial_write_compressed(translate("Invalid CIRCUITPY_PYSTACK_SIZE"));
|
||||||
serial_write_compressed(translate(", defaulting back to build value.\n\n"));
|
serial_write_compressed(translate(", defaulting back to build value.\n\n"));
|
||||||
pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset
|
pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset
|
||||||
|
@ -158,7 +159,8 @@ STATIC vm_memory_t allocate_vm_memory(void) {
|
||||||
#endif
|
#endif
|
||||||
res.pystack = allocate_memory(pystack_size, false, false);
|
res.pystack = allocate_memory(pystack_size, false, false);
|
||||||
if (res.pystack == NULL) {
|
if (res.pystack == NULL) {
|
||||||
serial_write_compressed(translate("\nWARNING: "));
|
serial_write("\n");
|
||||||
|
serial_write_compressed(translate("WARNING: "));
|
||||||
serial_write_compressed(translate("Allocating pystack failed"));
|
serial_write_compressed(translate("Allocating pystack failed"));
|
||||||
serial_write_compressed(translate(", defaulting back to build value.\n\n"));
|
serial_write_compressed(translate(", defaulting back to build value.\n\n"));
|
||||||
res.pystack = allocate_memory(CIRCUITPY_PYSTACK_SIZE, false, false);
|
res.pystack = allocate_memory(CIRCUITPY_PYSTACK_SIZE, false, false);
|
||||||
|
@ -469,7 +471,8 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool *simulate_reset) {
|
||||||
if (!found_main) {
|
if (!found_main) {
|
||||||
found_main = maybe_run_list(double_extension_filenames, MP_ARRAY_SIZE(double_extension_filenames));
|
found_main = maybe_run_list(double_extension_filenames, MP_ARRAY_SIZE(double_extension_filenames));
|
||||||
if (found_main) {
|
if (found_main) {
|
||||||
serial_write_compressed(translate("WARNING: Your code filename has two extensions\n"));
|
serial_write_compressed(translate("WARNING: "));
|
||||||
|
serial_write_compressed(translate("Your code filename has two extensions\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue