#include "common.h"
#include "control.h"
-const char * g_actuator_names[NUMACTUATORS] = {
- "Pressure regulator", "Solenoid 1"
-};
/**
* Handles control of the actuators.
- */
+ *
void ActuatorHandler(FCGIContext *context, ActuatorId id, const char *set_value) {
char *ptr;
STATUS_ERROR, "Invalid actuator id specified.");
}
}
+*/
/**
* System control handler. This covers control over all aspects of the system.
set_value = value;
}
}
+ Log(LOGDEBUG, "Id %d", id); // to stop compiler complaining for now
if (action == NULL) { //Must have an action
FCGI_RejectJSON(context, "No action specified");
if (set_value == NULL || *set_value == '\0') {
FCGI_RejectJSONEx(context,
STATUS_ERROR, "Set called but no value specified.");
- } else {
- ActuatorHandler(context, id, set_value);
+ } else
+ {
+// ActuatorHandler(context, id, set_value);
}
}
}