diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-10-10 10:30:32 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-10-10 10:30:32 (GMT) |
| commit | b9daf05fbcf2042041b93664ec894e9087186937 (patch) | |
| tree | afd502d72c16534a46c09316b6dff6aad3f6a442 /wasp | |
| parent | 942e9f0bb42583a97360a9421d755b0241a7f010 (diff) | |
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>
Diffstat (limited to 'wasp')
| -rw-r--r-- | wasp/boards/pinetime/watch.py.in | 3 |
1 files changed, 1 insertions, 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') |
