fix: bringup with full project
This commit is contained in:
@@ -1583,24 +1583,24 @@ void SPIT_Client::processSocketTask(SPIT_Client &instance) {
|
||||
auto nextWdTrigger = fos::Timing::getMilliSec() + WATCHDOGTIME;
|
||||
auto nextWdCheck = nextWdTrigger + WATCHDOGTIME;
|
||||
while (true) {
|
||||
auto time = fos::Timing::getMilliSec();
|
||||
if (time > nextWdTrigger) {
|
||||
instance.sAnswered = false;
|
||||
instance.sendWatchdog();
|
||||
nextWdTrigger = nextWdCheck + WATCHDOGTIME;
|
||||
}
|
||||
// auto time = fos::Timing::getMilliSec();
|
||||
// if (time > nextWdTrigger) {
|
||||
// instance.sAnswered = false;
|
||||
// // instance.sendWatchdog();
|
||||
// nextWdTrigger = nextWdCheck + WATCHDOGTIME;
|
||||
// }
|
||||
|
||||
if (time > nextWdCheck) {
|
||||
if (!instance.sAnswered) {
|
||||
ESP_LOGW(TAG, "TimeOut");
|
||||
instance.eventWatchdogLost();
|
||||
break;
|
||||
}
|
||||
nextWdCheck = nextWdTrigger + WATCHDOGTIME;
|
||||
}
|
||||
// if (time > nextWdCheck) {
|
||||
// if (!instance.sAnswered) {
|
||||
// ESP_LOGW(TAG, "TimeOut");
|
||||
// instance.eventWatchdogLost();
|
||||
// break;
|
||||
// }
|
||||
// nextWdCheck = nextWdTrigger + WATCHDOGTIME;
|
||||
// }
|
||||
fos::Task::delayMs(25);
|
||||
if (instance.m_StopReceiveSPITMessages)
|
||||
break;
|
||||
// if (instance.m_StopReceiveSPITMessages)
|
||||
// break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user