Support KL25z USB logger

Dependents:   kl25z_Usb_Logger

Fork of FastAnalogIn by Erik -

Revision:
7:965a2b0e477f
Parent:
4:cd84739f7640
--- a/FastAnalogIn_LPC1768.cpp	Mon Apr 21 10:02:07 2014 +0000
+++ b/FastAnalogIn_LPC1768.cpp	Mon Apr 21 10:26:49 2014 +0000
@@ -18,7 +18,7 @@
     NC,    NC,     0
 };
 
-int FastAnalogIn::channel_usage[8] = {0,0,0,0,0,0,0,0};
+static int channel_usage[8] = {0,0,0,0,0,0,0,0};
 
 FastAnalogIn::FastAnalogIn(PinName pin, bool enabled)
 {
@@ -88,7 +88,7 @@
 {
     volatile unsigned int retval;
     //If object is enabled return current value of datareg
-    if (running )
+    if (running)
         retval = *datareg;
  
     //If it isn't running, enable it and wait until new value is written to datareg