Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 8, 2024
1 parent 17dd39d commit 2632a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/MycilaGrid/MycilaGrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace Mycila {
void setJSY(JSY& jsy) { _jsy = &jsy; }
void setMQTT(MQTT& mqtt) { _mqtt = &mqtt; }

void setDefaultFrequency(uint8_t frequency) { _frequency = frequency; }
void setDefaultVoltage(uint8_t voltage) { _voltage = voltage; }
void setNominalFrequency(uint8_t frequency) { _frequency = frequency; }
void setNominalVoltage(uint8_t voltage) { _voltage = voltage; }

void setMQTTGridPowerTopic(const String& gridPowerMQTTTopic);
void setMQTTGridVoltageTopic(const String& gridVoltageMQTTTopic);
Expand Down
4 changes: 2 additions & 2 deletions src/init/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Mycila::Task initConfigTask("Init Config", [](void* params) {
#endif

// Grid
Mycila::Grid.setDefaultFrequency(config.get(KEY_GRID_FREQUENCY).toInt() == 60 ? 60 : 50);
Mycila::Grid.setDefaultVoltage(config.get(KEY_GRID_VOLTAGE).toInt());
Mycila::Grid.setNominalFrequency(config.get(KEY_GRID_FREQUENCY).toInt() == 60 ? 60 : 50);
Mycila::Grid.setNominalVoltage(config.get(KEY_GRID_VOLTAGE).toInt());
Mycila::Grid.setMQTTGridPowerTopic(config.get(KEY_GRID_POWER_MQTT_TOPIC));
Mycila::Grid.setMQTTGridVoltageTopic(config.get(KEY_GRID_VOLTAGE_MQTT_TOPIC));

Expand Down

0 comments on commit 2632a0c

Please sign in to comment.