From b9daf05fbcf2042041b93664ec894e9087186937 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 10 Oct 2020 11:30:32 +0100 Subject: [PATCH] boards: pinetime: Don't add nor_cs to the namespace Having an extra identifier for the Pin() is a waste of RAM... if you need the CS pin then grab it from watch.flash._cspins instead. Signed-off-by: Daniel Thompson --- wasp/boards/pinetime/watch.py.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wasp/boards/pinetime/watch.py.in b/wasp/boards/pinetime/watch.py.in index f156779..e78df4b 100644 --- a/wasp/boards/pinetime/watch.py.in +++ b/wasp/boards/pinetime/watch.py.in @@ -98,8 +98,7 @@ try: # Mount the filesystem boot_msg("Init SPINOR") - nor_cs = Pin('NOR_CS', Pin.OUT, value=1) - flash = FLASH(spi, (nor_cs,)) + flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),)) try: boot_msg("Mount FS") os.mount(flash, '/flash')