X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Factuator.c;h=7473485d54d771b88a44c053d8f269261e0c12d7;hb=de7308bc98bd82c798c7fe818ffcf29bc2afe1e4;hp=617136eb4b7160893a2c3374d41a4d7bff6cfea3;hpb=7e9d726ccd53626251e56b92c8eec47772bfe0f9;p=matches%2FMCTX3420.git diff --git a/server/actuator.c b/server/actuator.c index 617136e..7473485 100644 --- a/server/actuator.c +++ b/server/actuator.c @@ -457,3 +457,9 @@ Actuator * Actuator_Identify(const char * name) } return NULL; } + +DataPoint Actuator_LastData(int id) +{ + Actuator * a = &(g_actuators[id]); + return a->last_setting; +}