Skip to content

Commit 358f942

Browse files
committed
Fix for host target
1 parent 8da7ec3 commit 358f942

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/host/common/Arduino.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include <sys/time.h>
1717
#include "Arduino.h"
18+
#include <Delegate.h>
1819

1920
#include <unistd.h>
2021

@@ -62,6 +63,8 @@ extern "C" void esp_delay (unsigned long ms)
6263
usleep(ms * 1000);
6364
}
6465

66+
using IsBlockedCB = Delegate<bool(), void*>;
67+
6568
inline void esp_yield(const IsBlockedCB& blocked) {
6669
(void)blocked;
6770
}

0 commit comments

Comments
 (0)