Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Slimlined destructor

- moved destructor in the header file since it only contains one
statement.
  • Loading branch information...
commit 7d2a31d68c589ff946b1ed9ecaad618991f98a7e 1 parent 92c30d2
@csdexter authored
Showing with 3 additions and 6 deletions.
  1. +0 −4 Si4735.cpp
  2. +1 −1  Si4735.h
  3. +2 −1  TODO
View
4 Si4735.cpp
@@ -306,10 +306,6 @@ Si4735::Si4735(byte interface, byte pinPower, byte pinReset, byte pinGPO2,
}
}
-Si4735::~Si4735() {
- end(true);
-}
-
void Si4735::begin(byte mode, boolean xosc){
//Start by resetting the Si4735 and configuring the communication protocol
if(_pinPower != SI4735_PIN_POWER_HW) pinMode(_pinPower, OUTPUT);
View
2  Si4735.h
@@ -426,7 +426,7 @@ class Si4735
* Description:
* This is the destructor, it shuts the Si4735 down
*/
- ~Si4735();
+ ~Si4735() { end(true) };
/*
* Description:
View
3  TODO
@@ -3,4 +3,5 @@
-> implement proper PI decoding (worldwide, that is)
-> implement missing parts of the RDS standard
-> add HAL support (SPI/I2C arbitrator)
--> add hardware interrupt support for (at least) STCINT and RDSINT
+-> add hardware interrupt support for (at least) STCINT and RDSINT
+-> investigate implementing accessors for all published commands and moving all _CMD_* constants to -private.h and making sendCommand() private
Please sign in to comment.
Something went wrong with that request. Please try again.