mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
decouple RST settings from startup settings
This commit is contained in:
parent
77efc4d924
commit
5692356e90
9 changed files with 60 additions and 9 deletions
|
|
@ -46,6 +46,13 @@ void Generator::initializeDevice()
|
|||
updateDevice();
|
||||
}
|
||||
|
||||
void Generator::resetSettings()
|
||||
{
|
||||
central->setFrequency(1000000000);
|
||||
central->setLevel(0);
|
||||
central->setPort(0);
|
||||
}
|
||||
|
||||
nlohmann::json Generator::toJSON()
|
||||
{
|
||||
return central->toJSON();
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ public:
|
|||
|
||||
virtual Type getType() override { return Type::SG;}
|
||||
|
||||
virtual void resetSettings() override;
|
||||
|
||||
// Nothing to do for now
|
||||
virtual nlohmann::json toJSON() override;
|
||||
virtual void fromJSON(nlohmann::json j) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue