diff --git a/components/misc/thread.cpp b/components/misc/thread.cpp index 8101779bc..c78bf17e5 100644 --- a/components/misc/thread.cpp +++ b/components/misc/thread.cpp @@ -50,7 +50,7 @@ namespace Misc { void setCurrentThreadIdlePriority() { - rtprio prio; + struct rtprio prio; prio.type = RTP_PRIO_IDLE; prio.prio = RTP_PRIO_MAX; if (rtprio_thread(RTP_SET, 0, &prio) == 0)