Skip to content

Commit

Permalink
Make type private
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Dec 21, 2023
1 parent 632a58b commit e45efe0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/devices/Peripheral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ class PeripheralFactory : public PeripheralFactoryBase {
class PeripheralManager
: public TelemetryProvider {
public:
class ConstructionConfiguration : public ConfigurationSection {
public:
Property<String> name { this, "name" };
Property<String> type { this, "type" };
Property<JsonAsString> params { this, "params" };
};

PeripheralManager(ObjectArrayProperty<JsonAsString>& peripheralsConfig)
: peripheralsConfig(peripheralsConfig) {
}
Expand Down Expand Up @@ -124,6 +117,13 @@ class PeripheralManager
}

private:
class ConstructionConfiguration : public ConfigurationSection {
public:
Property<String> name { this, "name" };
Property<String> type { this, "type" };
Property<JsonAsString> params { this, "params" };
};

unique_ptr<Peripheral> createPeripheral(const String& name, const String& type, const String& configJson) {
Log.traceln("Creating peripheral: %s of type %s",
name.c_str(), type.c_str());
Expand Down

0 comments on commit e45efe0

Please sign in to comment.