Skip to content

Commit

Permalink
update version reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulh002 committed Dec 1, 2023
1 parent 2d4cc50 commit 48e96e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions SoapyHifiBerry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ SoapySDR::KwargsList findMyHifiBerry(const SoapySDR::Kwargs &args)
static std::vector<SoapySDR::Kwargs> results;

options["driver"] = "hifiberry";
options["label"] = "SoapyHifiberrys";
options["product"] = "SoapyHifiberry";
options["manufacturer"] = "PA0PHH";
options["label"] = "Hifiberry";
options["tuner"] = "si5351";
results.push_back(options);

return results;
Expand Down
10 changes: 5 additions & 5 deletions SoapyHifiBerrySettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ SoapySDR::Kwargs SoapyHifiBerry::getHardwareInfo(void) const
SoapySDR_log(SOAPY_SDR_INFO, "SoapyHifiBerry::getHardwareInfo called");

SoapySDR::Kwargs info;
int count = 0;

char version[100];
snprintf(version, 100, "%u.%u", 0, 2); //0.1
info["Version HifiBerry"] = version;
info["library_version"] = "0.2.0";
info["backend_version"] = "0.2.0";
info["manufacturer"] = "PA0PHH";
info["label"] = "HifiBerry";
info["origin"] = "https://github.com/paulh002/SoapyHifiBerry";
return info;
}

Expand Down

0 comments on commit 48e96e7

Please sign in to comment.