Skip to content

Commit 4a18e79

Browse files
fixed SDCard error on H7
1 parent e15cb14 commit 4a18e79

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ sentence=POSIX Storage Library for the Portenta C33, Portenta H7, and Portenta M
66
paragraph=Adds necessary functionality to use POSIX storage functions
77
category=Storage
88
url=https://arduino.cc
9-
architectures=renesas_portenta,mbed_portenta
9+
architectures=renesas_portenta,mbed_portenta,mbed_opta
1010
includes=Arduino_POSIXStorage.h

src/Arduino_POSIXStorage.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,21 @@
5959
#if defined(ARDUINO_PORTENTA_C33)
6060
#include <SDCardBlockDevice.h>
6161
#include <UsbHostMsd.h>
62-
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
62+
#elif defined(ARDUINO_PORTENTA_H7_M7)
6363
#include <Arduino_USBHostMbed5.h>
6464
#include <BlockDevice.h>
65-
// Necessary for Portenta Machine Control detection
6665
#include <DigitalIn.h>
67-
68-
69-
#elif defined(ARDUINO_PORTENTA_H7_M7) || ! defined(ARDUINO_OPTA)
7066
#include <SDMMCBlockDevice.h>
67+
#elif defined(ARDUINO_OPTA)
68+
#include <Arduino_USBHostMbed5.h>
69+
#include <BlockDevice.h>
70+
#include <DigitalIn.h>
7171
#else
7272
#error "The POSIXStorage library does not support this board"
7373
#endif
7474

75+
76+
7577
/*
7678
*********************************************************************************************************
7779
* Library-internal using declarations

0 commit comments

Comments
 (0)