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: AP1017.cpp
- Revision:
- 11:fe157aefa7e7
- Parent:
- 10:16d45e3f4be3
--- a/AP1017.cpp Wed Nov 08 21:37:24 2017 +0000
+++ b/AP1017.cpp Wed May 02 19:51:16 2018 +0000
@@ -99,7 +99,7 @@
}
-AP1017::Status AP1017::setSpeed(float dc)
+AP1017::Status AP1017::setSpeed(double dc)
{
if((dc <= 100.0) && (dc >= 0.0))
{
@@ -120,7 +120,7 @@
}
-float AP1017::getSpeed(void)
+double AP1017::getSpeed(void)
{
MSG("Speed: %.1f%%\r\n.", dutyCycle*100.0);
return dutyCycle*100.0;