decouple RST settings from startup settings

This commit is contained in:
Jan Käberich 2024-05-01 13:33:18 +02:00
parent 77efc4d924
commit 5692356e90
9 changed files with 60 additions and 9 deletions

View file

@ -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();

View file

@ -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;