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.
Diff: Mbed_Functions.cpp
- Revision:
- 5:b5e4fbe59746
- Parent:
- 4:729cab0e95c6
- Child:
- 6:30b4122b0ee2
diff -r 729cab0e95c6 -r b5e4fbe59746 Mbed_Functions.cpp
--- a/Mbed_Functions.cpp Sun Jan 19 04:15:59 2014 +0000
+++ b/Mbed_Functions.cpp Sun Jan 19 16:30:15 2014 +0000
@@ -61,7 +61,7 @@
{
string pinNameString = c->getParameter("pinName")->getString();
PinName pinName = _mbedPinNameExchange(pinNameString);
- int val = c->getParameter("val")->getInt();
+ float val = c->getParameter("val")->getDouble();
AnalogOut aout = AnalogOut((PinName)pinName);
aout.write(val);