Skip unecessary check for space

This commit is contained in:
Bill Sideris 2023-02-16 11:50:35 +02:00
parent 8061e8e7c6
commit c920dbb81c
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -149,7 +149,7 @@ STATIC vm_memory_t allocate_vm_memory(void) {
(void)common_hal_os_getenv_int("CIRCUITPY_PYSTACK_SIZE", &pystack_size); (void)common_hal_os_getenv_int("CIRCUITPY_PYSTACK_SIZE", &pystack_size);
// 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 ((CIRCUITPY_PYSTACK_SIZE != pystack_size) && (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: Invalid CIRCUITPY_PYSTACK_SIZE, defaulting back to build value.\n\n"));
pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset
} }