better thread and startup handling

This commit is contained in:
2023-11-21 14:17:19 +01:00
parent 8c51f53a26
commit a648b4be37
2 changed files with 27 additions and 10 deletions

View File

@ -240,8 +240,9 @@ class StarTrackerHandler : public DeviceHandlerBase {
Subscription subscription;
AutoThreshold autoThreshold;
};
bool jcfgPending = false;
JsonConfigs jcfgs;
Countdown jcfgCountdown = Countdown(250);
Countdown jcfgCountdown = Countdown(1000);
bool commandExecuted = false;
std::thread jsonCfgTask;
static void setUpJsonCfgs(JsonConfigs& cfgs, std::string paramJsonFile);