fix: bringup with full project

This commit is contained in:
2025-04-02 19:55:29 +02:00
parent 5ca595eddc
commit decaf80d1f
16 changed files with 79 additions and 75 deletions
+16 -16
View File
@@ -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;
}
}
}