Skip to content

Commit 79fcd3e

Browse files
Copilotdorkmo
andcommitted
Address PR review: remove unused timestamp field and add HTTP headers to calibration page response
Co-authored-by: dorkmo <[email protected]>
1 parent e2c4f90 commit 79fcd3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

TankAlarm-092025-Client-Hologram/TankAlarm-092025-Client-Hologram.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ int largeDecreaseWaitHours = 2;
224224
struct CalibrationPoint {
225225
float sensorValue; // Raw sensor reading (voltage, current, etc.)
226226
float actualHeight; // Actual measured height in inches
227-
String timestamp; // Timestamp of calibration point (for tracking/debugging)
228227
};
229228

230229
// Multi-site / Multi-tank support - all tanks configured via TANKA, TANKB, etc.

TankAlarm-092025-Server-Hologram/TankAlarm-092025-Server-Hologram.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,11 @@ void sendHttpResponse(EthernetClient &client, String path) {
12551255
} else if (path == "/emails") {
12561256
sendEmailManagementPage(client);
12571257
} else if (path == "/calibration") {
1258-
// Calibration page removed for simplification
1258+
// Calibration page removed for simplification - send proper HTTP response
1259+
client.println("HTTP/1.1 200 OK");
1260+
client.println("Content-Type: text/html");
1261+
client.println("Connection: close");
1262+
client.println();
12591263
client.println("<html><body><h1>Calibration Feature Removed</h1>");
12601264
client.println("<p>The calibration feature has been removed for simplification.</p>");
12611265
client.println("<p><a href='/'>Back to Dashboard</a></p></body></html>");

0 commit comments

Comments
 (0)