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:
parent
942e9f0bb4
commit
b9daf05fbc
1 changed files with 1 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue