Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make marker use more robust #189

Merged
merged 8 commits into from
Nov 25, 2024
Merged

Make marker use more robust #189

merged 8 commits into from
Nov 25, 2024

Conversation

loostrum
Copy link
Member

@loostrum loostrum commented Nov 20, 2024

The firmware used to set the marker bit in the DMA IRQ handler. When a new IRQ is triggered before data is sent, a marker could get lost.

Now, the marker bit is set in the main loop just before sending the data. To avoid the IRQ handler still overwriting the data to be sent (serialData object), the data is copied before setting the marker bit and sending it.

In the host library, any markers received from the device when a dumpfile is not open are rightfully ignored, but they weren't removed from the marker queue. That has been fixed.
The markers are now also written inline with the measurements, the marker character given to the mark function replaces the default S at the start of the line.

Lastly, a minor comment error was fixed in the description of the timestamp packet in the firmware.

@loostrum loostrum changed the title Make marker use more robust in firmware Make marker use more robust Nov 20, 2024
@loostrum loostrum merged commit 57838eb into main Nov 25, 2024
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant