fix(led): swap SETUP/APPS paths, WiFi LED off in AP mode

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-18 20:56:49 +08:00
parent 90bba5f348
commit a0f767f267
2 changed files with 7 additions and 5 deletions

View File

@@ -18,8 +18,8 @@ const log = require('./logger');
*/
const LED_PATH = process.env.CLAWD_LED_PATH || '/sys/devices/platform/openvfd/attr/b5';
const SETUP_LED_PATH = '/sys/devices/platform/openvfd/attr/b2';
const APPS_LED_PATH = '/sys/devices/platform/openvfd/attr/b1';
const SETUP_LED_PATH = '/sys/devices/platform/openvfd/attr/b1'; // 物理 SETUP 灯
const APPS_LED_PATH = '/sys/devices/platform/openvfd/attr/b2'; // 物理 APPS 灯
const BLINK_INTERVAL_MS = 500; // 闪烁间隔ms
class WifiLed {