Skip to content

Commit ec5054a

Browse files
Reset options version in IntelliCenterBoard to ensure fresh heat modes and setpoints are requested on startup, addressing potential issues with Wireless changes while offline. This aligns with the existing logic for configuration refresh handling. #1090
1 parent 6914fe0 commit ec5054a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

controller/boards/IntelliCenterBoard.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,10 @@ export class IntelliCenterBoard extends SystemBoard {
532532
b.master = 0;
533533
}
534534
ncp.initAsync(sys);
535+
// Clear options version so startup always requests fresh heat modes/setpoints.
536+
// OCP may not increment options version when Wireless makes changes while njsPC is offline,
537+
// so we force a refresh (same logic as triggerConfigRefresh in VersionMessage.ts).
538+
sys.configVersion.options = 0;
535539
// Defer to the next tick so that any state extracted from the same inbound packet
536540
// (e.g., firmware bytes from Action 204) is available before we decide v1 vs v3 behavior.
537541
setTimeout(() => this.checkConfiguration(), 0);

0 commit comments

Comments
 (0)