Skip to content

SimHal: interrupt on DIO1's rising edge only - #34

Merged
A13xB0 merged 1 commit into
mainfrom
dio1-rising-edge
Nov 1, 2026
Merged

A13xB0 merged 1 commit into
mainfrom
dio1-rising-edge

Conversation

@A13xB0

@A13xB0 A13xB0 commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

RadioLib attaches DIO1 rising. SimHal called the ISR every tick the line was high, so a firmware that had not yet read the chip was interrupted again every millisecond, and a second packet landing while the line was still high looked like a fresh interrupt. Neither happens on hardware.

Found with the busy-firmware runs in #33: MeshCore's receive driver timestamps the interrupt, and the repeats moved the timestamp to the moment it read rather than the moment the packet landed. variants/host/dio1_edge_test.cpp fails without the change.

@A13xB0
A13xB0 merged commit bf527b8 into main Nov 1, 2026
1 check passed
@A13xB0
A13xB0 deleted the dio1-rising-edge branch November 1, 2026 12:43
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