Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ void sendDailyReportForTank(int idx);
void logDailyDataForTank(int idx);
float readTankSensor(int tankIdx);
void updateAllTankReadings();
float convertToInches(float sensorValue, int tankIdx = 0);

// Calibration function declarations
void loadCalibrationData();
Expand Down Expand Up @@ -1103,7 +1104,7 @@ void sendDailyReportForTank(int idx) {
sendHologramData("DAILY", message);

// Log daily report event
logEvent("Daily report completed for site '" + siteName + "' tank #" + String(tankNum));
logEvent("Daily report completed for site '" + tanks[idx].siteName + "' tank #" + String(tanks[idx].tankNum));
}

void sendStartupNotification() {
Expand Down Expand Up @@ -1499,7 +1500,7 @@ void loadSDCardConfiguration() {
}

// Convert sensor reading to inches (requires tank index for height reference)
float convertToInches(float sensorValue, int tankIdx = 0) {
float convertToInches(float sensorValue, int tankIdx) {
// Use calibration data if available
if (calibrationDataLoaded && numCalibrationPoints >= 2) {
return interpolateHeight(sensorValue);
Expand Down
Loading