Repository navigation
v1.2.0: PlatformIO example and CI; FaultHandler weak and halting - #6
Merged
Merged
Conversation
- examples/platformio/statemachine-demo: Motor state machine through its states plus 1000 events (event data deleted by the state machine), for ESP32, ESP32-C3, Nucleo-F401RE, STM32F4 Discovery, Pico and native. - PlatformIO CI workflow builds every board and runs native. - Fault.cpp: FaultHandler is weak on GCC/Clang (an application or another library can provide its own) and calls abort() after assert. It used to end in while(1), which hung desktop builds, and returned nothing useful under NDEBUG. DebugBreak() only with a debugger attached. - README: owner-qualified lib_deps (endurodave/StateMachine), example, FaultHandler, PlatformIO badge. .gitignore: .pio/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/platformio/statemachine-demodrives the Motor state machine through its states and then sends 1000 events, checking that every event's data is deleted. Boards: ESP32, ESP32-C3, Nucleo-F401RE, STM32F4 Discovery, Pico, native.FaultHandler: weak on GCC/Clang so an application or another library (C_Allocator, SimpleSocketProtocol) can provide its own; callsabort()afterassert(0)instead ofwhile(1)(which hung desktop/CI builds).DebugBreak()only with a debugger attached.lib_deps = endurodave/StateMachine@^1.2.0(StateMachinealone is ambiguous in the registry), the example,FaultHandler, PlatformIO badge..gitignore:.pio/.Found in a code review of the PlatformIO libraries.
Testing
🤖 Generated with Claude Code