Added additional debug output during the initialization of the hoymiles interface
This commit is contained in:
parent
217fddf405
commit
304afb758a
11
src/main.cpp
11
src/main.cpp
@ -80,12 +80,22 @@ void setup()
|
|||||||
Serial.print(F("Initialize Hoymiles interface... "));
|
Serial.print(F("Initialize Hoymiles interface... "));
|
||||||
CONFIG_T& config = Configuration.get();
|
CONFIG_T& config = Configuration.get();
|
||||||
Hoymiles.init();
|
Hoymiles.init();
|
||||||
|
|
||||||
|
Serial.println(F(" Setting radio PA level... "));
|
||||||
Hoymiles.getRadio()->setPALevel((rf24_pa_dbm_e)config.Dtu_PaLevel);
|
Hoymiles.getRadio()->setPALevel((rf24_pa_dbm_e)config.Dtu_PaLevel);
|
||||||
|
|
||||||
|
Serial.println(F(" Setting DTU serial... "));
|
||||||
Hoymiles.getRadio()->setDtuSerial(config.Dtu_Serial);
|
Hoymiles.getRadio()->setDtuSerial(config.Dtu_Serial);
|
||||||
|
|
||||||
|
Serial.println(F(" Setting poll interval... "));
|
||||||
Hoymiles.setPollInterval(config.Dtu_PollInterval);
|
Hoymiles.setPollInterval(config.Dtu_PollInterval);
|
||||||
|
|
||||||
for (uint8_t i = 0; i < INV_MAX_COUNT; i++) {
|
for (uint8_t i = 0; i < INV_MAX_COUNT; i++) {
|
||||||
if (config.Inverter[i].Serial > 0) {
|
if (config.Inverter[i].Serial > 0) {
|
||||||
|
Serial.print(F(" Adding inverter: "));
|
||||||
|
Serial.print(config.Inverter[i].Serial, HEX);
|
||||||
|
Serial.print(F(" - "));
|
||||||
|
Serial.print(config.Inverter[i].Name);
|
||||||
auto inv = Hoymiles.addInverter(
|
auto inv = Hoymiles.addInverter(
|
||||||
config.Inverter[i].Name,
|
config.Inverter[i].Name,
|
||||||
config.Inverter[i].Serial);
|
config.Inverter[i].Serial);
|
||||||
@ -93,6 +103,7 @@ void setup()
|
|||||||
for (uint8_t c = 0; c < INV_MAX_CHAN_COUNT; c++) {
|
for (uint8_t c = 0; c < INV_MAX_CHAN_COUNT; c++) {
|
||||||
inv->Statistics()->setChannelMaxPower(c, config.Inverter[i].MaxChannelPower[c]);
|
inv->Statistics()->setChannelMaxPower(c, config.Inverter[i].MaxChannelPower[c]);
|
||||||
}
|
}
|
||||||
|
Serial.println(F(" done"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Serial.println(F("done"));
|
Serial.println(F("done"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user