変更内容 / Changes
スリープ復帰時のカメラ即時失敗を修正
- 原因:
GetTickCount64()はスリープ/休止中もカウントが進むため、スリープ前に設定した25秒のデッドラインがスリープ復帰直後に数時間分超過し、カメラopenが実際には試みられる前に即タイムアウト判定されていた - 修正: ポーリング間隔の差分積算方式に変更。2秒以上のギャップをスリープイベントと判定し、経過時間カウンターをリセット。これにより数時間のスリープ後でも復帰時に正しくカメラリトライが再開される
Fixed instant camera failure after sleep resume
- Cause:
GetTickCount64()keeps ticking during sleep/hibernate, so the 25-second camera open deadline set before sleep had already expired by hours upon resume, causing an immediate false timeout before any actual camera open attempt - Fix: Switched to polling-gap-based elapsed time tracking. Gaps over 2 seconds between polls are treated as sleep events and reset the elapsed counter, allowing the camera worker a fresh 25-second window after resume
No Warranty / 品質保証なし