Made basic output of values, slow but starting to be actually functional
This commit is contained in:
parent
6cfdcc13ce
commit
30a39aff3e
9 changed files with 56 additions and 9 deletions
|
|
@ -84,7 +84,17 @@ void Dtu::updateMicroinverters() {
|
|||
|
||||
std::vector<std::thread>::iterator updateThreadsIterator = updateThreads.begin();
|
||||
while(updateThreadsIterator != updateThreads.end()) {
|
||||
updateThreadsIterator->join();
|
||||
updateThreadsIterator++;
|
||||
updateThreadsIterator->join(); updateThreadsIterator++;
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
void Dtu::printMicroinverters() {
|
||||
std::cout << "DTU:" << std::endl;
|
||||
std::vector<Microinverter>::iterator microinvertersIterator = this->microinverters.begin();
|
||||
while(microinvertersIterator != this->microinverters.end()) {
|
||||
microinvertersIterator->printPorts();
|
||||
std::cout << std::endl;
|
||||
microinvertersIterator++;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue