Removed multithreading for now, corrected connected

This commit is contained in:
TraYali 2024-03-19 12:54:05 +01:00
parent 089c7a77b5
commit e0135b6753
4 changed files with 34 additions and 20 deletions

View file

@ -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();