fix: 还原 inactive 路径 restartGateway + showTime keepalive
1. 还原 7737e08:removeProviderByName 重新调用 restartGateway(), inactive/active 状态变化均重启 gateway 使 openclaw.json 生效 2. led.js showTime() 加 30s keepalive 定时器:持续向 vfdservice 管道写入,防止长时间无写入后管道"冷却",导致随后 showPin() 调用 openSync(FIFO, 'w') 因无读端而阻塞、blink timer 无法触发 Made-with: Cursor
This commit is contained in:
@@ -254,9 +254,15 @@ class Display {
|
||||
|
||||
showTime() {
|
||||
this._stopBlink();
|
||||
log.debug('display', '[vfd] #s1');
|
||||
writeVfdPipeClock();
|
||||
log.info('display', '显示屏 → 时间');
|
||||
// 每 30s 刷新一次,保持 vfdservice 持续从管道读取,
|
||||
// 防止长时间无写入后管道"冷却",导致后续 showPin 写入阻塞
|
||||
const refresh = () => {
|
||||
writeVfdPipeClock();
|
||||
this._blinkTimer = setTimeout(refresh, 30_000);
|
||||
};
|
||||
this._blinkTimer = setTimeout(refresh, 30_000);
|
||||
}
|
||||
|
||||
showPin(pin) {
|
||||
|
||||
Reference in New Issue
Block a user