File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,17 @@ void btReadTask(void *e)
78
78
if (settings.enableTaskReports == true )
79
79
systemPrintf (" SerialWriteTask High watermark: %d\r\n " , uxTaskGetStackHighWaterMark (nullptr ));
80
80
81
- delay ( 1 ); // Poor man's way of feeding WDT. Required to prevent Priority 1 tasks from causing WDT reset
81
+ feedWdt ();
82
82
taskYIELD ();
83
83
} // End while(true)
84
84
}
85
85
86
+ // Normally a delay(1) will feed the WDT but if we don't want to wait that long, this feeds the WDT without delay
87
+ void feedWdt ()
88
+ {
89
+ vTaskDelay (1 );
90
+ }
91
+
86
92
// ----------------------------------------------------------------------
87
93
// The ESP32<->ZED-F9P serial connection is default 230,400bps to facilitate
88
94
// 10Hz fix rate with PPP Logging Defaults (NMEAx5 + RXMx2) messages enabled.
@@ -181,7 +187,7 @@ void gnssReadTask(void *e)
181
187
}
182
188
}
183
189
184
- delay ( 1 );
190
+ feedWdt ( );
185
191
taskYIELD ();
186
192
}
187
193
}
You can’t perform that action at this time.
0 commit comments