   // If voltage is more than 0, then pump is on, and we need to sound an alert
   // Need to make sure to wait a few seconds after self test to see if DC pump is ON
   if (mv > 9000 && (now() - selftest.lastTestTime) > (conf.selfTestTimeLimit + 6)) {
-    raiseAlert(DcPumpActivated, PSTR("DC Pump ON"));
+    raiseAlert(DcPumpActivated, ("DC Pump ON"));
     // Record that the pump is on, or process alert, if it was already on.
     if (!dcpump.currentlyOn) {
       dcpump.currentlyOn = true;
       dcpump.switchOnTime = now();
     } else if ((now() - dcpump.switchOnTime) > conf.dcPumpOnTimeWarning) {
-      raiseAlert(DcPumpOverload, PSTR("DC pump ON too long"));
+      raiseAlert(DcPumpOverload, ("DC pump ON too long"));
     }
   } else {
     dcpump.currentlyOn = false;

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


void sendSelfTestResponse()
{
   sprintf(buf, ("timeSince=%lu&"), (now() - selftest.lastTestTime));
   net.responseSendPart(buf);
   sprintf(buf, ("cyclesSince=%d&"), acpump.onCycles-selftest.acCycles);
   net.responseSendPart(buf);
   sprintf(buf, ("voltage=%d&"), selftest.batteryVoltageMv);
   net.responseSendPart(buf);
   sprintf(buf, ("length=%d&"), (int)selftest.testLength);
   net.responseSendPart(buf);
   sprintf(buf, ("pumpedHeight=%d&"), selftest.startingHeight - selftest.endingHeight);
   net.responseSendPart(buf);
   sprintf(buf, ("result=%d"), selftest.passed);
   net.responseSendPart(buf);
   net.responseEnd();
}
