Skip to content

Commit c239bee

Browse files
committed
Fixed bug with showing the right value returned by the web server
1 parent 88969af commit c239bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thermo_base/thermo_base.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SoftwareSerial mySerial(SERIAL_RX_PIN, D8); // RX, TX
3838

3939
#define NUM_REMOTES 8
4040

41-
static const char* NAMES[] PROGMEM = {"Aaron's", "Basement", "Den", "Florida", "Garage", "Here", "Office", "Our Br"};
41+
static const char* NAMES[] PROGMEM = {"Aaron's", "Basement", "Den", "Florida", "Garage", "Here", "Office", "Our Br"};
4242
static const char* CODES PROGMEM = "ABDFGHOM";
4343
static const float ADJUSTMENT[] = {-1.92, -1.84, -2, -1.84, -1.64, -5.4, -1, -3.32};
4444
struct RemoteMetaData metadata[NUM_REMOTES];
@@ -196,7 +196,7 @@ void handleRoot() {
196196
metadata[4].summary, (now - metadata[4].when) / 1000, (int)metadata[4].minTemp, (int)metadata[4].maxTemp,
197197
metadata[5].summary, (now - metadata[5].when) / 1000, (int)metadata[5].minTemp, (int)metadata[5].maxTemp,
198198
metadata[6].summary, (now - metadata[6].when) / 1000, (int)metadata[6].minTemp, (int)metadata[6].maxTemp,
199-
metadata[7].summary, (now - metadata[6].when) / 1000, (int)metadata[6].minTemp, (int)metadata[6].maxTemp
199+
metadata[7].summary, (now - metadata[7].when) / 1000, (int)metadata[7].minTemp, (int)metadata[7].maxTemp
200200
);
201201
Serial.println(buffer);
202202
server.send(200, "text/plain", buffer);

0 commit comments

Comments
 (0)