Add wired ethernet support

This commit is contained in:
2026-05-10 18:54:05 +03:00
parent 3ef89f8334
commit 75c6972b17
+8 -1
View File
@@ -64,6 +64,10 @@ uint8_t eeprom_read(uint32_t mapped_addr);
#include "Remote.h" #include "Remote.h"
#endif #endif
#if HAS_ETHERNET == true
#include "Ethernet.h"
#endif
#if HAS_PMU == true #if HAS_PMU == true
#include "Power.h" #include "Power.h"
#endif #endif
@@ -857,7 +861,10 @@ int8_t led_standby_direction = 0;
void serial_write(uint8_t byte) { void serial_write(uint8_t byte) {
#if HAS_BLUETOOTH || HAS_BLE == true #if HAS_BLUETOOTH || HAS_BLE == true
if (bt_state != BT_STATE_CONNECTED) { 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); } if (wifi_host_is_connected()) { wifi_remote_write(byte); }
else { Serial.write(byte); } else { Serial.write(byte); }
#else #else