X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fpin_test.c;h=77c0ef9a32064428e047e9368635581c2ffe6547;hb=828cdbf49f52572e93c5c5a48e05277525a4055f;hp=b22cc13c0c187be81a752305e257921d28be035a;hpb=0bcd433fc420fa29bfaaca732acf689c9603e59d;p=matches%2FMCTX3420.git diff --git a/server/pin_test.c b/server/pin_test.c index b22cc13..77c0ef9 100644 --- a/server/pin_test.c +++ b/server/pin_test.c @@ -1,6 +1,6 @@ /** * @file pin_test.c - * @purpose Implementations to allow direct control over pins through FastCGI + * @brief Implementations to allow direct control over pins through FastCGI */ #include "pin_test.h" @@ -27,7 +27,7 @@ void Pin_Close() ADC_Unexport(i); for (int i = 0; i < PWM_NUM_PINS; ++i) - PWM_Unexport(g_pin_safe_pwm[i]); + PWM_Unexport(i); } bool Pin_Configure(const char *type, int pin_export, int num) @@ -212,4 +212,4 @@ void Pin_Handler(FCGIContext *context, char * params) FCGI_RejectJSON(context, "Invalid pin type"); } -} \ No newline at end of file +}