Skip to content

Commit

Permalink
Explained variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Holst committed Jan 21, 2018
1 parent 3615604 commit a1c266e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BSB_lan_custom.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ if (custom_timer > custom_timer_compare+20000) { // every 20 seconds
max_avg_count++;
Serial.print(max_devices[x], HEX);
Serial.print(F(": "));
Serial.print((float)max_cur_temp[x] / 10);
Serial.print((float)max_cur_temp[x] / 10); // Current temperature
Serial.print(F(" / "));
Serial.print((float)max_dst_temp[x] / 2);
Serial.print((float)max_dst_temp[x] / 2); // Desired temperature
Serial.print(F(" / "));
Serial.println(max_valve[x]);
Serial.println(max_valve[x]); // Valve opening in percent
}
}
if (max_avg_count > 0) {
Serial.print(F("AvgMax: "));
Serial.println(max_avg / max_avg_count);

char set_temp[6];
dtostrf((max_avg/max_avg_count), 1, 1, set_temp);
dtostrf((max_avg/max_avg_count), 1, 1, set_temp); // Send average temperature
// Serial.print(F("Setting room temperature to "));
// Serial.println(set_temp);
// set(10000, set_temp, 0);
Expand Down

0 comments on commit a1c266e

Please sign in to comment.