Skip to content

Commit

Permalink
Merge pull request #216 from schneider42/schneier/description-fallback
Browse files Browse the repository at this point in the history
fallback to core:description for anno label
  • Loading branch information
miek authored Oct 16, 2023
2 parents 81ecf57 + b1dd038 commit c2566d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/inputsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ void InputSource::readMetaData(const QString &filename)
auto frequencyRange = range_t<double>{freq_lower_edge, freq_upper_edge};

auto label = sigmf_annotation["core:label"].toString();
if (label.isEmpty()) {
label = sigmf_annotation["core:description"].toString();
}

auto comment = sigmf_annotation["core:comment"].toString();

Expand Down

0 comments on commit c2566d2

Please sign in to comment.