Removed multithreading for now, corrected connected
This commit is contained in:
parent
089c7a77b5
commit
e0135b6753
4 changed files with 34 additions and 20 deletions
|
|
@ -16,7 +16,7 @@ int main(){
|
|||
auto endTime = std::chrono::high_resolution_clock::now();
|
||||
std::cout << "Construction time: " << std::chrono::duration_cast<std::chrono::milliseconds>(endTime - startTime).count() << "ms" << std::endl;
|
||||
|
||||
while(true) {
|
||||
while(dtu.isConnected()) {
|
||||
auto startTime = std::chrono::high_resolution_clock::now();
|
||||
dtu.updateMicroinverters();
|
||||
auto endTime = std::chrono::high_resolution_clock::now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue