From 75c6972b17f322e7df57735be302591a2c0df6c7 Mon Sep 17 00:00:00 2001 From: Nickie Deuxyeux Date: Sun, 10 May 2026 18:54:05 +0300 Subject: [PATCH] Add wired ethernet support --- Utilities.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Utilities.h b/Utilities.h index 5eaa300..65b4d87 100644 --- a/Utilities.h +++ b/Utilities.h @@ -64,6 +64,10 @@ uint8_t eeprom_read(uint32_t mapped_addr); #include "Remote.h" #endif +#if HAS_ETHERNET == true + #include "Ethernet.h" +#endif + #if HAS_PMU == true #include "Power.h" #endif @@ -857,7 +861,10 @@ int8_t led_standby_direction = 0; void serial_write(uint8_t byte) { #if HAS_BLUETOOTH || HAS_BLE == true if (bt_state != BT_STATE_CONNECTED) { - #if HAS_WIFI + #if HAS_ETHERNET + if (eth_is_connected && wifi_host_is_connected()) { connection.write(byte); } + else { Serial.write(byte); } + #elif HAS_WIFI if (wifi_host_is_connected()) { wifi_remote_write(byte); } else { Serial.write(byte); } #else