added the ability to announce the creation and termination of TacosThreads in init() and cleanup(). Needs to be enabled with #define STA_TACOS_DIAGNOSTICS_ENABLED

This commit is contained in:
Simon Kassen 2025-01-25 18:28:51 +01:00
parent aa21c44270
commit a2c22ab4e6

View File

@ -56,7 +56,11 @@ namespace sta
}
}
void TacosThread::init() {}
void TacosThread::init() {
#ifdef STA_TACOS_DIAGNOSTICS_ENABLED
STA_DEBUG_PRINTF("Started %s", getName());
#endif //STA_TACOS_DIAGNOSTICS_ENABLED
}
void TacosThread::loop()
{
@ -102,7 +106,11 @@ namespace sta
osThreadExit();
}
void TacosThread::cleanup() {}
void TacosThread::cleanup() {
#ifdef STA_TACOS_DIAGNOSTICS_ENABLED
STA_DEBUG_PRINTF("Stopped %s", getName());
#endif
}
void TacosThread::sleep(uint32_t ticks)
{