Skip to content

Commit b71494f

Browse files
committed
USBCDC_ECM fix deprecated function
1 parent 546e6fa commit b71494f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

APIs_USB/USBCDC_ECM/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
#include "mbed.h"
1817
#include "USBCDC_ECM.h"
1918

@@ -38,6 +37,6 @@ int main()
3837
{
3938
while (true) {
4039
ecm.send((uint8_t *)&packet, sizeof(packet));
41-
wait(1.0);
40+
ThisThread::sleep_for(1000);
4241
}
4342
}

0 commit comments

Comments
 (0)