diff --git a/lib/obp60task/OBP60Hardware.h b/lib/obp60task/OBP60Hardware.h index 66b8cd0..6cdf054 100644 --- a/lib/obp60task/OBP60Hardware.h +++ b/lib/obp60task/OBP60Hardware.h @@ -12,7 +12,7 @@ // BME280 #define BME280_I2C_ADDR 0x76 // Addr. 0x76 (0x77) // BMP280 - #define BMP280_I2C_ADDR 0x77 // Addr. 0x76 (0x77) + #define BMP280_I2C_ADDR 0x77 // Addr. 0x77 (0x76) Attention: Pull up resistor // BMP085 / BMP180 #define BMP180_I2C_ADDR 0x77 // Addr. 0x77 (fix) // SHT21 / HUT21 @@ -63,7 +63,7 @@ #define TP3 12 #define TP4 11 #define TP5 10 - #define TP6 9 // Right ouside + #define TP6 9 // Right outside // Flash LED (1x WS2812B) #define NUM_FLASH_LED 1 // Number of flash LED diff --git a/lib/obp60task/OBPSensorTask.cpp b/lib/obp60task/OBPSensorTask.cpp index 450b501..087d53b 100644 --- a/lib/obp60task/OBPSensorTask.cpp +++ b/lib/obp60task/OBPSensorTask.cpp @@ -322,7 +322,7 @@ void sensorTask(void *param){ double voffset = (api->getConfig()->getConfigItem(api->getConfig()->vOffset,true)->asString()).toFloat(); double vslope = (api->getConfig()->getConfigItem(api->getConfig()->vSlope,true)->asString()).toFloat(); - long starttime0 = millis(); // GPS update all 1s + long starttime0 = millis(); // GPS update all 100ms long starttime5 = millis(); // Voltage update all 1s long starttime6 = millis(); // Environment sensor update all 1s long starttime7 = millis(); // Rotation sensor update all 500ms @@ -341,10 +341,10 @@ void sensorTask(void *param){ delay(100); // Loop time 100ms Timer1.update(); // Update for Timer1 Timer2.update(); // Update for Timer2 - if (millis() > starttime0 + 1000) + if (millis() > starttime0 + 100) { starttime0 = millis(); - // Send NMEA0183 GPS data on several bus systems all 1000ms + // Send NMEA0183 GPS data on several bus systems all 100ms if (gps_ready == true) { SNMEA0183Msg NMEA0183Msg; diff --git a/lib/obp60task/obp60task.cpp b/lib/obp60task/obp60task.cpp index 4a16d91..9c4096f 100644 --- a/lib/obp60task/obp60task.cpp +++ b/lib/obp60task/obp60task.cpp @@ -497,7 +497,7 @@ void OBP60Task(GwApi *api){ delayedDisplayUpdate = false; } - // Subtask E-Ink full refresh all 1 min for the first 5min after power on or restart + // Subtask E-Ink full refresh all 1 min for the first 5 min after power on or restart // This needs for a better display contrast after power on in cold or warm environments if(millis() < firststart + (5 * 60 * 1000) && millis() > starttime1 + (60 * 1000)){ starttime1 = millis();