compile fix

This commit is contained in:
folkert van heusden 2022-03-26 11:54:29 +01:00
parent 53ee8675eb
commit 55fec7a19a

View file

@ -55,6 +55,9 @@ int parity(int v)
void myusleep(uint64_t us) void myusleep(uint64_t us)
{ {
#if defined(ESP32)
delayMicroseconds(us);
#else
struct timespec req; struct timespec req;
req.tv_sec = us / 1000000l; req.tv_sec = us / 1000000l;
@ -69,5 +72,5 @@ void myusleep(uint64_t us)
memcpy(&req, &rem, sizeof(struct timespec)); memcpy(&req, &rem, sizeof(struct timespec));
} }
#endif
} }