       
   if (range.distance > conf.alertWaterLevel) {
     char tmp[40];
-    sprintf(tmp, PSTR("Water level: %d"), range.distance);
+    sprintf(tmp, ("Water level: %d"), range.distance);
     raiseAlert(WaterLevel, tmp);
   }
   return range.distance;


void sendDebugResponse()
{
  sprintf(buf, PSTR("time=%lu"), now());
  net.responseSendPart(buf);
  sprintf(buf, PSTR("rangeLH[0]=%d,%d"), range.lows[0], range.highs[0]);
  net.responseSendPart(buf);
  sprintf(buf, PSTR("&rangeLH[1]=%d,%d"), range.lows[1], range.highs[1]);
  net.responseSendPart(buf);
  sprintf(buf, PSTR("&DcHeight=%d,%d"), selftest.startingHeight, selftest.endingHeight);
  net.responseSendPart(buf);
  sprintf(buf, PSTR("&pressure=%d"), analogRead(PRESSURE_SENSOR_PIN));
  net.responseSendPart(buf);
  sprintf(buf, PSTR("&AcPumpCycles=%d"), acpump.onCycles);
  net.responseSendPart(buf);
  sprintf(buf, PSTR("&lastAlertTime=%lu"), alert.timeTriggered);
  net.responseSendPart(buf);
  sprintf(buf, PSTR("&rawDepthPressure=%d"), analogRead(DEPTH_PRESSURE_SENSOR_PIN));
  net.responseSendPart(buf);
//  sprintf(buf, );
//  net.responseSendPart(buf);

    } else {
      net.sendResponse("ERROR");
    }
  } else if (net.assertCommandStarts("setDcPumpOnTimeWarning:", buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp >= 1 && tmp < 3600) {
      conf.dcPumpOnTimeWarning = tmp;
      saveConfig();
      net.sendResponse("OK");
    } else {
      net.sendResponse("ERROR: 1-3600 expected.");
    }
  } else {
    net.sendResponse("Unrecognized command");
