X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensors%2Fstrain.c;h=4278d6c27cdaf2848606f3a1e581f76051adb9fa;hb=edb6df04611c10dca29799a1e08096bd4ca28303;hp=9492de7c69483e0ced0348a02901b299f7774644;hpb=6e40f0744f98348a4bba114025ec84b1634f81d5;p=matches%2FMCTX3420.git diff --git a/server/sensors/strain.c b/server/sensors/strain.c index 9492de7..4278d6c 100644 --- a/server/sensors/strain.c +++ b/server/sensors/strain.c @@ -68,6 +68,24 @@ bool Strain_Init(const char * name, int id) return true; } +bool Strain_Cleanup(int id) +{ + static bool kill_adc = false; + if (!kill_adc) + { + kill_adc = true; + ADC_Unexport(STRAIN_ADC); + } + int gpio_num = Strain_To_GPIO(id); + GPIO_Unexport(gpio_num); + return true; +} + +bool Strain_Sanity(int id, double value) +{ + return true; +} + /** * Read from a Strain gauge * @param id - The strain gauge to read