Size reductions
This commit is contained in:
parent
c920dbb81c
commit
f6e7edc900
|
@ -38,15 +38,7 @@ msgstr ""
|
||||||
#: main.c
|
#: main.c
|
||||||
msgid ""
|
msgid ""
|
||||||
"\n"
|
"\n"
|
||||||
"WARNING: Allocating pystack failed, defaulting back to build value. \n"
|
"WARNING: "
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: main.c
|
|
||||||
msgid ""
|
|
||||||
"\n"
|
|
||||||
"WARNING: Invalid CIRCUITPY_PYSTACK_SIZE, defaulting back to build value.\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
|
@ -390,6 +382,12 @@ msgstr ""
|
||||||
msgid "*x must be assignment target"
|
msgid "*x must be assignment target"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.c
|
||||||
|
msgid ""
|
||||||
|
", defaulting back to build value.\n"
|
||||||
|
"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
msgid ", in %q\n"
|
msgid ", in %q\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -496,6 +494,10 @@ msgstr ""
|
||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.c
|
||||||
|
msgid "Allocating pystack failed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/espressif/common-hal/_bleio/Adapter.c
|
#: ports/espressif/common-hal/_bleio/Adapter.c
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Already advertising."
|
msgid "Already advertising."
|
||||||
|
@ -1244,6 +1246,10 @@ msgstr ""
|
||||||
msgid "Invalid BSSID"
|
msgid "Invalid BSSID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: main.c
|
||||||
|
msgid "Invalid CIRCUITPY_PYSTACK_SIZE"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/wifi/Radio.c
|
#: shared-bindings/wifi/Radio.c
|
||||||
msgid "Invalid MAC address"
|
msgid "Invalid MAC address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
8
main.c
8
main.c
|
@ -150,13 +150,17 @@ 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: Invalid CIRCUITPY_PYSTACK_SIZE, defaulting back to build value.\n\n"));
|
serial_write_compressed(translate("\nWARNING: "));
|
||||||
|
serial_write_compressed(translate("Invalid CIRCUITPY_PYSTACK_SIZE"));
|
||||||
|
serial_write_compressed(translate(", defaulting back to build value.\n\n"));
|
||||||
pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset
|
pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset
|
||||||
}
|
}
|
||||||
#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: Allocating pystack failed, defaulting back to build value. \n\n"));
|
serial_write_compressed(translate("\nWARNING: "));
|
||||||
|
serial_write_compressed(translate("Allocating pystack failed"));
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue