1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

allow to set the satck size for user tasks

This commit is contained in:
wellenvogel
2021-12-02 17:43:47 +01:00
parent cd1fefad52
commit c837d9b028
4 changed files with 20 additions and 9 deletions

View File

@@ -12,14 +12,17 @@ class GwUserTask{
GwUserTaskFunction usertask=NULL;
bool isUserTask=false;
GwApi *api=NULL;
GwUserTask(String name,TaskFunction_t task){
int stackSize=2000;
GwUserTask(String name,TaskFunction_t task,int stackSize=2000){
this->name=name;
this->task=task;
this->stackSize=stackSize;
}
GwUserTask(String name, GwUserTaskFunction task){
GwUserTask(String name, GwUserTaskFunction task,int stackSize=2000){
this->name=name;
this->usertask=task;
this->isUserTask=true;
this->stackSize=stackSize;
}
};
class GwUserCode{