Skip to content

Commit 0c0f105

Browse files
committed
Fix mbed-os-to-arduino to match new folder structure
1 parent 248d329 commit 0c0f105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed-os-to-arduino

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ EOF
222222

223223
patch_spi_h () {
224224
echo -n "Patching SPI headers..."
225-
mv "$ARDUINOCOREMBED"/drivers/SPI.h "$ARDUINOCOREMBED"/drivers/SPIMaster.h
226-
for header in mbed.h features/nfc/controllers/PN512SPITransportDriver.h components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h; do
225+
mv "$ARDUINOCOREMBED"/drivers/include/drivers/SPI.h "$ARDUINOCOREMBED"/drivers/include/drivers/SPIMaster.h
226+
for header in mbed.h connectivity/drivers/nfc/PN512/include/nfc/controllers/PN512SPITransportDriver.h storage/blockdevice/COMPONENT_SD/include/SD/SDBlockDevice.h; do
227227
sed -i.bak 's#drivers/SPI\.h#drivers/SPIMaster\.h#g' "$ARDUINOCOREMBED"/$header
228228
rm "$ARDUINOCOREMBED"/$header.bak
229229
done

0 commit comments

Comments
 (0)