Skip to content

Commit 216a726

Browse files
Fix: Re-evaluate telemetry enabled state on init
Co-authored-by: intel <[email protected]>
1 parent d25cba6 commit 216a726

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dsmil/runtime/dsmil_ot_telemetry.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ void dsmil_telemetry_safety_signal_update(const dsmil_telemetry_event_t *ev) {
175175
}
176176

177177
int dsmil_ot_telemetry_init(void) {
178-
// Initialize telemetry enabled state
178+
// Force re-evaluation of the environment on every init so tests that toggle
179+
// DSMIL_OT_TELEMETRY between runs get a fresh read.
180+
atomic_store(&telemetry_enabled, -1);
179181
check_telemetry_enabled();
180182
return 0;
181183
}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)