Skip to content

Commit 7ff5a45

Browse files
committed
replace wait with rtos sleep
1 parent b0d36eb commit 7ff5a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/storage/blockdevice/COMPONENT_I2CEE/I2CEEBlockDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
#include "I2CEEBlockDevice.h"
17-
#include "mbed_wait_api.h"
17+
#include "rtos/ThisThread.h"
1818
using namespace mbed;
1919

2020
#define I2CEE_TIMEOUT 10000
@@ -124,7 +124,7 @@ int I2CEEBlockDevice::_sync()
124124
return 0;
125125
}
126126

127-
wait_ms(1);
127+
rtos::ThisThread::sleep_for(1);
128128
}
129129

130130
return BD_ERROR_DEVICE_ERROR;

0 commit comments

Comments
 (0)