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

Fix for problems with reboots by using GPS modul (was not correct implemented)

This commit is contained in:
norbert-walter
2022-03-16 12:02:31 +01:00
parent 8b49db33f2
commit e025ce0cdb
2 changed files with 60 additions and 1 deletions

View File

@@ -28,8 +28,12 @@
#include "Logo_OBP_400x300_sw.h" // OBP Logo
#include "OBP60QRWiFi.h" // Functions lib for WiFi QR code
#include "ObpNmea0183.h"
#include "GwNmea0183Msg.h"
tNMEA0183Msg NMEA0183Msg;
tNMEA0183 NMEA0183;
ObpNmea0183 NMEA0183; // Fixed Lib for NMEA0183
// tNMEA0183 NMEA0183; // Old lib with problems for NMEA0183
Adafruit_BME280 bme280; // Evironment sensor BME280
Adafruit_BMP280 bmp280; // Evironment sensor BMEP280
@@ -520,6 +524,7 @@ void OBP60Task(GwApi *api){
long starttime6 = millis(); // Environment sensor update all 1s
while (true){
delay(10); // Fixed the problem with NMEA0183 and GPS sentences
Timer1.update(); // Update for Timer1
Timer2.update(); // Update for Timer2
if(millis() > starttime0 + 100){