X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fmain.c;h=2ad9dcc694c9354500b1a3feeae439c06475493f;hb=c579f7d79d74965f51e96b1c047406be7c5583be;hp=930b8b01a1ab1d713927f9913e014fac81ed33a4;hpb=e0f849d11ae14ee0637786b6663436aafff90254;p=matches%2FMCTX3420.git diff --git a/server/main.c b/server/main.c index 930b8b0..2ad9dcc 100644 --- a/server/main.c +++ b/server/main.c @@ -9,6 +9,7 @@ #include "sensor.h" #include "actuator.h" #include "control.h" +#include "pin_test.h" #include "bbb_pin_defines.h" // --- Standard headers --- // @@ -27,6 +28,10 @@ Options g_options; // options passed to program through command line arguments */ void ParseArguments(int argc, char ** argv) { + // horrible horrible hacks + g_options.argc = argc; + g_options.argv = argv; + g_options.program = argv[0]; // program name g_options.verbosity = LOGDEBUG; // default log level gettimeofday(&(g_options.start_time), NULL); // Start time @@ -112,6 +117,7 @@ int main(int argc, char ** argv) */ Sensor_Init(); Actuator_Init(); + Pin_Init(); //Sensor_StartAll("test"); //Actuator_StartAll("test"); const char *ret; @@ -126,6 +132,8 @@ int main(int argc, char ** argv) //Sensor_StopAll(); //Actuator_StopAll(); + Pin_Close(); + Cleanup(); return 0; }