Add function to get min free stack of autopoll task

This commit is contained in:
Michael Geramb 2023-11-18 21:15:23 +01:00
parent 41bcb86c66
commit 953a5d0f63
1 changed files with 4 additions and 0 deletions

View File

@ -359,6 +359,10 @@ class Span{
Span& setRebootCallback(void (*f)(uint8_t),uint32_t t=DEFAULT_REBOOT_CALLBACK_TIME){rebootCallback=f;rebootCallbackTime=t;return(*this);}
uint32_t getAutoPollMinFreeStack(){
return uxTaskGetStackHighWaterMark(pollTaskHandle);
}
void autoPoll(uint32_t stackSize=8192, uint32_t priority=1, uint32_t cpu=0){ // start pollTask()
xTaskCreateUniversal([](void *parms){
for(;;){