Add usleep to strain.c just in case...
[matches/MCTX3420.git] / server / pin_test.c
index b22cc13..77c0ef9 100644 (file)
@@ -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
+}

UCC git Repository :: git.ucc.asn.au