mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8302 from JanneKiiskila/wait_ms
Use wait_ms(int) instead of wait(float)pull/8375/merge
commit
2daab38194
|
@ -167,7 +167,7 @@ uint32_t OTA_ReadImage(uint32_t base, uint32_t offset, uint32_t len, uint8_t *da
|
|||
void OTA_ResetTarget(void)
|
||||
{
|
||||
__RTK_CTRL_WRITE32(0x14, 0x00000021);
|
||||
wait(1);
|
||||
wait_ms(1000);
|
||||
|
||||
NVIC_SystemReset();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* ODIN-W2 implementation of WiFiInterface
|
||||
* Copyright (c) 2016 u-blox Malmö AB
|
||||
* Copyright (c) 2016 u-blox Malmö AB
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -937,7 +937,7 @@ void OdinWiFiInterface::handle_user_scan(user_scan_s *user_scan)
|
|||
cbRTSL_Status status = cbSTATUS_ERROR;
|
||||
for(int i = 0; (i < 10) && (status != cbSTATUS_OK); i++) {
|
||||
if(i > 0) {
|
||||
wait(0.5);
|
||||
wait_ms(500);
|
||||
}
|
||||
|
||||
cbMAIN_driverLock();
|
||||
|
|
Loading…
Reference in New Issue