diff --git a/Thread.cpp b/Thread.cpp index 6b96419..f02d73a 100644 --- a/Thread.cpp +++ b/Thread.cpp @@ -7,8 +7,10 @@ Thread::Thread(void (*callback)(void), long _interval){ last_run = 0; ThreadID = (int)this; - ThreadName = "Thread "; - ThreadName = ThreadName + ThreadID; + #ifdef USE_THREAD_NAMES + ThreadName = "Thread "; + ThreadName = ThreadName + ThreadID; + #endif setInterval(_interval); };