Skip to content

Commit a1b86fe

Browse files
committed
Automatically rename mbed.h to mbed_wrap.h
1 parent a5cbbe4 commit a1b86fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: mbed-os-to-arduino

+2-1
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,14 @@ a
209209
wq
210210
EOF
211211
fi
212+
mv "$ARDUINOCOREMBED"/mbed.h "$ARDUINOCOREMBED"/mbed_wrap.h
212213
echo " done."
213214
}
214215

215216
patch_spi_h () {
216217
echo -n "Patching SPI headers..."
217218
mv "$ARDUINOCOREMBED"/drivers/SPI.h "$ARDUINOCOREMBED"/drivers/SPIMaster.h
218-
for header in mbed.h features/nfc/controllers/PN512SPITransportDriver.h components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h; do
219+
for header in mbed_wrap.h features/nfc/controllers/PN512SPITransportDriver.h components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h; do
219220
sed -i.bak 's#drivers/SPI\.h#drivers/SPIMaster\.h#g' "$ARDUINOCOREMBED"/$header
220221
rm "$ARDUINOCOREMBED"/$header.bak
221222
done

0 commit comments

Comments
 (0)