Remove the last "new" to reduce size

This commit is contained in:
Henrik Ekblad
2015-02-27 22:17:05 +01:00
parent ee6e34b59a
commit afce932cff
3 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
#include "MyRFDriver.h"
#include "MyRFDriverRF69.h"
MyRFDriverRF69::MyRFDriverRF69() : MyRFDriver() {
radio = new RFM69();
MyRFDriverRF69::MyRFDriverRF69()
:
MyRFDriver(),
radio()
{
}
void MyRFDriverRF69::init() {
+1 -1
View File
@@ -107,7 +107,7 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
}
void MySensor::setupRepeaterMode(){
childNodeTable = new uint8_t[256];
// childNodeTable = new uint8_t[256];
eeprom_read_block((void*)childNodeTable, (void*)EEPROM_ROUTES_ADDRESS, 256);
}
+1 -1
View File
@@ -260,7 +260,7 @@ class MySensor
char convBuf[MAX_PAYLOAD*2+1];
#endif
uint8_t failedTransmissions;
uint8_t *childNodeTable; // In memory buffer for routing information to other nodes. also stored in EEPROM
uint8_t childNodeTable[256]; // In memory buffer for routing information to other nodes. also stored in EEPROM
void (*timeCallback)(unsigned long); // Callback for requested time messages
void (*msgCallback)(const MyMessage &); // Callback for incoming messages from other nodes and gateway.