Remove the last "new" to reduce size
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#include "MyRFDriver.h"
|
||||
#include "MyRFDriverRF69.h"
|
||||
|
||||
MyRFDriverRF69::MyRFDriverRF69() : MyRFDriver() {
|
||||
radio = new RFM69();
|
||||
MyRFDriverRF69::MyRFDriverRF69()
|
||||
:
|
||||
MyRFDriver(),
|
||||
radio()
|
||||
{
|
||||
}
|
||||
|
||||
void MyRFDriverRF69::init() {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user