Commit ff4fc8b
committed
test: compile idle_state.h against Arduino's macro namespace
Companion to the HiveHub fix. These host tests build the pure headers
against a bare compiler, where Arduino's few hundred all-caps macros do not
exist — so a constant in the shared counter_protocol.h that collides with
one of them passes every check here and fails only in the firmware build.
HiveHub hit exactly that with an enumerator named DISABLED meeting
esp32-hal-gpio.h's `#define DISABLED 0x00`.
Define the macros that actually bite before the include, so the collision
surfaces in seconds on a host compiler instead of partway through a
firmware build.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gFpezSuXW3sHMd1xaSYnd1 parent 281e5ad commit ff4fc8b
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
19 | 43 | | |
20 | 44 | | |
21 | 45 | | |
| |||
0 commit comments