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.
Revision 4:f059fdd25051, committed 2012-09-24
- Comitter:
- ykuroda
- Date:
- Mon Sep 24 21:47:05 2012 +0000
- Parent:
- 3:b7e72acaade2
- Commit message:
- set destructor virtual
Changed in this revision
| AD7490.cpp | Show annotated file Show diff for this revision Revisions of this file |
| AD7490.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/AD7490.cpp Mon Sep 24 21:33:14 2012 +0000
+++ b/AD7490.cpp Mon Sep 24 21:47:05 2012 +0000
@@ -35,10 +35,6 @@
}
}
-AD7490::~AD7490()
-{
-}
-
unsigned short
AD7490::convert(int ch)
{
--- a/AD7490.h Mon Sep 24 21:33:14 2012 +0000
+++ b/AD7490.h Mon Sep 24 21:47:05 2012 +0000
@@ -30,7 +30,8 @@
public:
AD7490(SPI _spi, PinName _cs);
- ~AD7490();
+ virtual ~AD7490(){};
+
unsigned short convert(int ch=0); // one shot conversion at channel [ch]
void convert(short data[]); // convert all (16) channels with one short conv.