[SYS] Bump ESP32 platform to v6.1.0 and ESP8266 to v4.1.0 (#1547)
* Bump ESP32 platform to v6.1.0 and ESP8266 to v4.1.0 * Fix ESP32 not connecting to Ethernet And remove check updates as it is now done every hour * Do not define LED pins if not explicitly stated * OLED need to be reset for Heltec Lora 32 V2 * Fix issue with SSD1306 saving
This commit is contained in:
1 parent
537d4849e5
commit
86744b283b
6 files changed
+75
-55
No files matched your search
+9
-8
@@ -755,7 +755,10 @@ void setup() {
|
||||
checkButton();
|
||||
#endif
|
||||
//setup LED status
|
||||
SetupIndicators();
|
||||
SetupIndicatorError();
|
||||
SetupIndicatorSendReceive();
|
||||
SetupIndicatorInfo();
|
||||
SetupIndicators(); // For RGB Leds
|
||||
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
# ifdef ESP8266
|
||||
@@ -1492,24 +1495,24 @@ void setup_ethernet_esp32() {
|
||||
|
||||
void WiFiEvent(WiFiEvent_t event) {
|
||||
switch (event) {
|
||||
case SYSTEM_EVENT_ETH_START:
|
||||
case ARDUINO_EVENT_ETH_START:
|
||||
Log.trace(F("Ethernet Started" CR));
|
||||
ETH.setHostname(gateway_name);
|
||||
break;
|
||||
case SYSTEM_EVENT_ETH_CONNECTED:
|
||||
case ARDUINO_EVENT_ETH_CONNECTED:
|
||||
Log.notice(F("Ethernet Connected" CR));
|
||||
break;
|
||||
case SYSTEM_EVENT_ETH_GOT_IP:
|
||||
case ARDUINO_EVENT_ETH_GOT_IP:
|
||||
Log.trace(F("OpenMQTTGateway MAC: %s" CR), ETH.macAddress().c_str());
|
||||
Log.trace(F("OpenMQTTGateway IP: %s" CR), ETH.localIP().toString().c_str());
|
||||
Log.trace(F("OpenMQTTGateway link speed: %d Mbps" CR), ETH.linkSpeed());
|
||||
esp32EthConnected = true;
|
||||
break;
|
||||
case SYSTEM_EVENT_ETH_DISCONNECTED:
|
||||
case ARDUINO_EVENT_ETH_DISCONNECTED:
|
||||
Log.error(F("Ethernet Disconnected" CR));
|
||||
esp32EthConnected = false;
|
||||
break;
|
||||
case SYSTEM_EVENT_ETH_STOP:
|
||||
case ARDUINO_EVENT_ETH_STOP:
|
||||
Log.error(F("Ethernet Stopped" CR));
|
||||
esp32EthConnected = false;
|
||||
break;
|
||||
@@ -2178,8 +2181,6 @@ void MQTTHttpsFWUpdate(char* topicOri, JsonObject& HttpsFwUpdateData) {
|
||||
# if defined(ZgatewayBT)
|
||||
stopProcessing();
|
||||
# endif
|
||||
if (!checkForUpdates())
|
||||
return;
|
||||
systemUrl = RELEASE_LINK + latestVersion + "/" + ENV_NAME + "-firmware.bin";
|
||||
url = systemUrl.c_str();
|
||||
Log.notice(F("Using system OTA url with latest version %s" CR), url);
|
||||
|
||||
Reference in new issue
Block a user