X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fmain.c;h=a48c2230a02cb7b62744b57b329eeb396a60f1c5;hb=716344659847fd869a89e31168c600ae432b7c0c;hp=c2e516147b6a3d393d28e44a801805753f1d4554;hpb=83a3a266ff3cfecea7a6275924f3bdd15dfe6436;p=matches%2FMCTX3420.git diff --git a/server/main.c b/server/main.c index c2e5161..a48c223 100644 --- a/server/main.c +++ b/server/main.c @@ -128,19 +128,19 @@ int main(int argc, char ** argv) Pin_Init(); // Try and start things - /* + 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); - */ + //Sensor_StopAll(); //Actuator_StopAll();