Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: EasyCAT.cpp
- Revision:
- 3:7d8b74ba7225
- Parent:
- 2:e0fc1b098ce8
--- a/EasyCAT.cpp Thu Mar 28 08:32:57 2019 +0000
+++ b/EasyCAT.cpp Sat Apr 10 14:49:17 2021 +0000
@@ -111,7 +111,12 @@
Spi.frequency(14000000); // SPI speed 14MHz
Spi.format(8,0); // 8 bit mode 0
- wait_ms(100);
+
+ #if (MBED_MAJOR_VERSION != 2)
+ ThisThread::sleep_for(100ms);
+ #else
+ wait_ms(100);
+ #endif
SPIWriteRegisterDirect (RESET_CTL, DIGITAL_RST); // LAN9252 reset