Skip to content

Commit

Permalink
dataproviders: align names of lamps with peripherals
Browse files Browse the repository at this point in the history
  • Loading branch information
s-t-a-n committed Oct 7, 2024
1 parent fc83bdf commit eb95460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/kaskas/data_providers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ enum class DataProviders {
HEATING_SURFACE_TEMP,
HEATING_SURFACE_FAN,
HEATING_ELEMENT,
REDBLUE_SPECTRUM,
FULL_SPECTRUM,
VIOLET_SPECTRUM,
BROAD_SPECTRUM,
PUMP,
FLUID_INJECTED,
FLUID_INJECTED_CUMULATIVE,
Expand Down
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void setup() {
auto peripheral = std::make_unique<Relay>(std::move(cfg));
auto state_provider = std::make_shared<DigitalActuator>(peripheral->state_provider());

sf.hotload_provider(DataProviders::REDBLUE_SPECTRUM, std::move(state_provider));
sf.hotload_provider(DataProviders::VIOLET_SPECTRUM, std::move(state_provider));
sf.hotload_peripheral(Peripherals::VIOLET_SPECTRUM_RELAY, std::move(peripheral));
}

Expand All @@ -174,7 +174,7 @@ void setup() {
auto peripheral = std::make_unique<Relay>(std::move(cfg));
auto state_provider = std::make_shared<DigitalActuator>(peripheral->state_provider());

sf.hotload_provider(DataProviders::FULL_SPECTRUM, std::move(state_provider));
sf.hotload_provider(DataProviders::BROAD_SPECTRUM, std::move(state_provider));
sf.hotload_peripheral(Peripherals::BROAD_SPECTRUM_RELAY, std::move(peripheral));
}

Expand Down Expand Up @@ -272,7 +272,7 @@ void setup() {
using kaskas::component::Growlights;
auto growlights_cfg =
Growlights::Config{
.redblue_spectrum_actuator_idx = meta::ENUM_IDX(DataProviders::REDBLUE_SPECTRUM),
.redblue_spectrum_actuator_idx = meta::ENUM_IDX(DataProviders::VIOLET_SPECTRUM),
.redblue_spectrum_schedule =
Schedule::Config{
.blocks =
Expand All @@ -282,7 +282,7 @@ void setup() {
.start = time_h(20), .duration = time_h(12), .value = LogicalState::OFF},
}},

.full_spectrum_actuator_idx = meta::ENUM_IDX(DataProviders::FULL_SPECTRUM),
.full_spectrum_actuator_idx = meta::ENUM_IDX(DataProviders::BROAD_SPECTRUM),
.full_spectrum_schedule =
Schedule::Config{
.blocks =
Expand Down

0 comments on commit eb95460

Please sign in to comment.