X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=server%2Fmain.c;h=bd649a7fa7680544f22a64180980c39fd6d1bd3e;hb=f153e203bc4215026abd0dcce8427d633b5a6398;hp=fadcd3a8d349cb4783ad79501c8c54a5ede3760a;hpb=544b54c409f3731b8e1581af95072a64ff393a28;p=matches%2FMCTX3420.git diff --git a/server/main.c b/server/main.c index fadcd3a..bd649a7 100644 --- a/server/main.c +++ b/server/main.c @@ -205,17 +205,18 @@ int main(int argc, char ** argv) // Try and start things - const char *ret; - if ((ret = Control_SetMode(CONTROL_START, "test")) != NULL) - Fatal("Control_SetMode failed with '%s'", ret); + //const char *ret; + //if ((ret = Control_SetMode(CONTROL_START, "test")) != NULL) + // Fatal("Control_SetMode failed with '%s'", ret); // run request thread in the main thread FCGI_RequestLoop(NULL); - if ((ret = Control_SetMode(CONTROL_STOP, "test")) != NULL) - Fatal("Control_SetMode failed with '%s'", ret); + Conrol_SetMode(CONTROL_STOP, NULL); + //if ((ret = Control_SetMode(CONTROL_STOP, "test")) != NULL) + // Fatal("Control_SetMode failed with '%s'", ret); //Sensor_StopAll(); //Actuator_StopAll();