Yoji KURODA / AD7490

Files at this revision

API Documentation at this revision

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.