summaryrefslogtreecommitdiff
path: root/supervisor/shared
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-11-13 18:33:02 -0800
committerScott Shawcroft <scott@tannewt.org>2020-11-13 18:57:52 -0800
commitbda3267432aee57e704a20308b724369cceeb6ca (patch)
tree47f6a854677781382d715791e7d7534d71887f7a /supervisor/shared
parent68eb809fbf5cafdabb20c090b98aefb1628e3552 (diff)
Save flash space
* No weak link for modules. It only impacts _os and _time and is already disabled for non-full builds. * Turn off PA00 and PA01 because they are the crystal on the Metro M0 Express. * Change ejected default to false to move it to BSS. It is set on USB connection anyway. * Set sinc_filter to const. Doesn't help flash but keeps it out of RAM.
Diffstat (limited to 'supervisor/shared')
-rw-r--r--supervisor/shared/usb/usb_msc_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/usb/usb_msc_flash.c b/supervisor/shared/usb/usb_msc_flash.c
index 7532b6aea..b39f60dcd 100644
--- a/supervisor/shared/usb/usb_msc_flash.c
+++ b/supervisor/shared/usb/usb_msc_flash.c
@@ -39,7 +39,7 @@
#define MSC_FLASH_BLOCK_SIZE 512
-static bool ejected[1] = {true};
+static bool ejected[1] = {false};
void usb_msc_mount(void) {
// Reset the ejection tracking every time we're plugged into USB. This allows for us to battery