replace wait with rtos sleep

pull/10711/head
Pavel Slama 2019-08-06 15:57:16 +02:00
parent b0d36ebfc1
commit 7ff5a45a24
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "I2CEEBlockDevice.h"
#include "mbed_wait_api.h"
#include "rtos/ThisThread.h"
using namespace mbed;
#define I2CEE_TIMEOUT 10000
@ -124,7 +124,7 @@ int I2CEEBlockDevice::_sync()
return 0;
}
wait_ms(1);
rtos::ThisThread::sleep_for(1);
}
return BD_ERROR_DEVICE_ERROR;