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

Sensor task runs with 100ms

This commit is contained in:
norbert-walter
2022-03-20 19:21:14 +01:00
parent a396a6217f
commit df70e2daa5

View File

@@ -211,11 +211,11 @@ void sensorTask(void *param){
tN2kMsg N2kMsg;
shared->setSensorData(sensors); //set initially read values
// Sensor task loop runs with 10ms
// Sensor task loop runs with 100ms
//####################################################################################
while (true){
delay(10);
delay(100); // Loop time 100ms
Timer1.update(); // Update for Timer1
Timer2.update(); // Update for Timer2
if (millis() > starttime0 + 100)