fix(led,provision): AP forces WiFi(play) off; LAN uses carrier+operstate

- Monitor: every tick in ap state led.off() so play never stays on with hotspot
- hasLanCableCarrier: _ifacePhysicalLinkUp (carrier=1 and operstate not down)
- When end0/eth0 exist but link down, return false (no fallback to hasWiredCarrier)
- LAN poll 500ms

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-28 22:15:48 +08:00
parent 9800e712e5
commit 1910a2fb9f
3 changed files with 35 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ const { hasLanCableCarrier } = require('./network');
*/
const BLINK_INTERVAL_MS = 500;
const LAN_POLL_MS = 1000;
const LAN_POLL_MS = 500;
const VFD_BASE = process.env.CLAWD_OPENVFD_PATH || '/sys/class/leds/openvfd';