My fork

Dependencies:   BLE_API mbed-dev-bin nRF51822-bluetooth-mdw

Fork of microbit-dal-bluetooth-mdw by Martin Woolley

Revision:
45:23b71960fe6c
Parent:
37:b624ae5e94a5
Child:
49:88f03f3feff1
diff -r bb4aa1985f37 -r 23b71960fe6c source/drivers/MicroBitPin.cpp
--- a/source/drivers/MicroBitPin.cpp	Wed Jul 13 12:18:23 2016 +0100
+++ b/source/drivers/MicroBitPin.cpp	Wed Jul 13 12:18:24 2016 +0100
@@ -43,7 +43,7 @@
   * @param name the mbed PinName for this MicroBitPin instance.
   *
   * @param capability the capabilities this MicroBitPin instance should have.
-  *                   (PIN_CAPABILITY_DIGITAL, PIN_CAPABILITY_ANALOG, PIN_CAPABILITY_TOUCH, PIN_CAPABILITY_AD, PIN_CAPABILITY_ALL)
+  *                   (PIN_CAPABILITY_DIGITAL, PIN_CAPABILITY_ANALOG, PIN_CAPABILITY_AD, PIN_CAPABILITY_ALL)
   *
   * @code
   * MicroBitPin P0(MICROBIT_ID_IO_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_ALL);
@@ -332,7 +332,7 @@
 int MicroBitPin::isTouched()
 {
     //check if this pin has a touch mode...
-    if(!(PIN_CAPABILITY_TOUCH & capability))
+    if(!(PIN_CAPABILITY_DIGITAL & capability))
         return MICROBIT_NOT_SUPPORTED;
 
     // Move into a touch input state if necessary.