Skip to content

Implement teardown contract for ESPTimer#2

Merged
zekageri merged 1 commit intomainfrom
feature/esp-timer/teardown/teardown-contract-esp-timer
Feb 24, 2026
Merged

Implement teardown contract for ESPTimer#2
zekageri merged 1 commit intomainfrom
feature/esp-timer/teardown/teardown-contract-esp-timer

Conversation

@zekageri
Copy link
Collaborator

Summary

  • add isInitialized() const to ESPTimer and remove the clearTimer backward-compatibility alias
  • keep teardown centered on deinit() and align docs/examples with explicit teardown usage
  • add lifecycle coverage for pre-init deinit(), repeated deinit(), and init -> deinit -> init

Verification

  • pio test -d /home/zekageri/projects/esptoolkit/libs/esp-timer (fails in this environment: pio not installed)
  • cmake -S /home/zekageri/projects/esptoolkit/libs/esp-timer -B /tmp/esp-timer-cmake-check && cmake --build /tmp/esp-timer-cmake-check (fails in this environment: cmake not installed)

@zekageri zekageri merged commit d031cd4 into main Feb 24, 2026
8 checks passed
@zekageri zekageri deleted the feature/esp-timer/teardown/teardown-contract-esp-timer branch February 26, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant