compile fix
This commit is contained in:
parent
53ee8675eb
commit
55fec7a19a
1 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,9 @@ int parity(int v)
|
|||
|
||||
void myusleep(uint64_t us)
|
||||
{
|
||||
#if defined(ESP32)
|
||||
delayMicroseconds(us);
|
||||
#else
|
||||
struct timespec req;
|
||||
|
||||
req.tv_sec = us / 1000000l;
|
||||
|
@ -69,5 +72,5 @@ void myusleep(uint64_t us)
|
|||
|
||||
memcpy(&req, &rem, sizeof(struct timespec));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue