Skip to content

Commit

Permalink
add support to read files that end in '.sigmf-'
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Gilbert <[email protected]>
  • Loading branch information
Jacob Gilbert authored and jacobagilbert committed Apr 7, 2023
1 parent 290572e commit c390d3a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/inputsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,8 @@ void InputSource::openFile(const char *filename)
annotationList.clear();
QString metaFilename;

if (suffix == "sigmf-meta") {
if (suffix == "sigmf-meta" || suffix == "sigmf-data" || suffix == "sigmf-") {
dataFilename = fileInfo.path() + "/" + fileInfo.completeBaseName() + ".sigmf-data";
metaFilename = filename;
readMetaData(metaFilename);
}
else if (suffix == "sigmf-data") {
dataFilename = filename;
metaFilename = fileInfo.path() + "/" + fileInfo.completeBaseName() + ".sigmf-meta";
readMetaData(metaFilename);
}
Expand Down

0 comments on commit c390d3a

Please sign in to comment.