Repository navigation
Preserve acquisition timing when resaving a digital capture - #925
Open
Bender1011001 wants to merge 1 commit into
Open
Bender1011001 wants to merge 1 commit into
Bender1011001 wants to merge 1 commit into
Conversation
Schildkroet
added a commit
to Schildkroet/DSView
that referenced
this pull request
Dec 1, 2026
Port of upstream DSView PR DreamSourceLab#925 (issue DreamSourceLab#924): a full save of a loaded logic capture no longer resets the trigger position or rewrites the acquisition time. Uses SR_CONF_FILE_ACQUISITION (50009; upstream's 50008 is taken by SR_CONF_EXT_SAMPLERATE here). Port of upstream PRs DreamSourceLab#927/DreamSourceLab#928: append to CMAKE_CXX_FLAGS instead of overwriting it, and drop the forced -std=c++11/-std=c99. Co-Authored-By: Claude Sonnet 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.
Fixes #924.
On a full save of a file-backed digital capture, use the acquisition limit, signed trigger timestamp and trigger sample already loaded by the file driver. The driver returns presence flags so an explicit zero survives and a missing field uses the existing save default. Cursor-range saves and live acquisitions use the existing path.
Native application checks
Built this branch against
2e9e2c8on Ubuntu 22.04. Used the candidate application's channel-name editor and full Save dialog, then reopened each output and exported its waveform in a fresh stock DSView 1.3.2 process.The same patch on the earlier
03131ddsource revision was also exercised on seven hardware recordings, omitted versus explicit-zero timing fields, a signed negative timestamp, an excerpt whose declared limit exceeded its stored samples, and a cursor-selected save. Those additional cases were run on the earlier revision.