From dc050b3561ec47389ea6d6fdedb34627f29b4225 Mon Sep 17 00:00:00 2001 From: mikecarper Date: Wed, 23 Sep 2026 19:36:59 -0700 Subject: [PATCH] Fix radio receive contract clock harness --- test/test_radio_receive_contract.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_radio_receive_contract.py b/test/test_radio_receive_contract.py index 54eba5fa..3612322c 100644 --- a/test/test_radio_receive_contract.py +++ b/test/test_radio_receive_contract.py @@ -42,6 +42,10 @@ static volatile uint8_t state = STATE_RX; static uint32_t now_ms = 0; uint32_t millis() { return now_ms; } uint32_t micros() { return now_ms * 1000UL; } +// The dedicated profile-clock contract exercises the production clock helpers. +// This receive-state harness only needs their portable single-process behavior. +void syncProfileClock(bool) {} +uint32_t profileTimestamp(bool) { return micros(); } void noInterrupts() {} void interrupts() {} void yield() { ++now_ms; } @@ -62,7 +66,7 @@ struct RadioLibWrapper { bool _cw_active = false; bool serviceCarrierWave() { return false; } // dedicated CW harness owns this path mesh::RadioProfiles _profiles; - uint32_t _profile_visit_us = 0; + uint32_t _profile_visit_stamp = 0; uint32_t _profile_scan_generation[2] = {}; uint8_t _active_profile = 0; bool _profile_rxps_suspended = false;