Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Pinscape_Controller
Fork of FastAnalogIn by
Revision 11:234c5cd2b8de, committed 2015-12-19
- Comitter:
- mjr
- Date:
- Sat Dec 19 06:36:25 2015 +0000
- Parent:
- 10:afc3b84dbbd6
- Commit message:
- Minor changes
Changed in this revision
| FastAnalogIn_KLXX_K20D50M.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r afc3b84dbbd6 -r 234c5cd2b8de FastAnalogIn_KLXX_K20D50M.cpp
--- a/FastAnalogIn_KLXX_K20D50M.cpp Tue Nov 04 17:53:25 2014 +0000
+++ b/FastAnalogIn_KLXX_K20D50M.cpp Sat Dec 19 06:36:25 2015 +0000
@@ -24,6 +24,9 @@
FastAnalogIn::FastAnalogIn(PinName pin, bool enabled)
{
+ if (pin == NC)
+ return;
+
ADCnumber = (ADCName)pinmap_peripheral(pin, PinMap_ADC);
if (ADCnumber == (ADCName)NC) {
error("ADC pin mapping failed");
