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 <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2020-10-10 11:30:32 +01:00
parent 942e9f0bb4
commit b9daf05fbc

View file

@ -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')