Skip to content

Commit c385dc0

Browse files
committed
fixup! esp32: Add low level SD card block device NIFs
Signed-off-by: Davide Bettio <davide@uninstall.it>
1 parent c4356ac commit c385dc0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/platforms/esp32/components/avm_builtins/storage_nif.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,6 @@ static term nif_esp_sdcard_read(Context *ctx, int argc, term argv[])
709709
}
710710
avm_int64_t sector = term_maybe_unbox_int64(argv[1]);
711711

712-
// The spinlock is held across the (blocking) card transaction; a mutex
713-
// would be preferable for larger transfers.
714712
SMP_MUTEX_LOCK(dev->lock);
715713
if (UNLIKELY(!dev->open)) {
716714
SMP_MUTEX_UNLOCK(dev->lock);

0 commit comments

Comments
 (0)