remove dead code

This commit is contained in:
DevilBinder 2022-06-20 22:42:46 +02:00
parent d2ec720484
commit 657b845f95
2 changed files with 5 additions and 12 deletions

View File

@ -15,15 +15,7 @@ FDRSBase::FDRSBase(uint8_t gtwy_mac,uint8_t reading_id):
_reading_id(reading_id),
_data_count(0)
{
//lora
_gtwyAddress[0] = prefix[3];
_gtwyAddress[1] = prefix[4];
_gtwyAddress[2] = _gtwy_mac;
fdrsData = new DataReading[_espnow_size];
}
FDRSBase::~FDRSBase(){
@ -140,7 +132,9 @@ void FDRS_EspNow::transmit(DataReading *fdrsData, uint8_t _data_count){
#ifdef USE_LORA
FDRSLoRa::FDRSLoRa(uint8_t gtwy_mac, uint8_t reading_id,uint8_t miso,uint8_t mosi,uint8_t sck, uint8_t ss,uint8_t rst,uint8_t dio0,uint32_t band,uint8_t sf):
FDRSLoRa::FDRSLoRa(uint8_t gtwy_mac,
uint8_t reading_id,uint8_t miso,uint8_t mosi,uint8_t sck,
uint8_t ss,uint8_t rst,uint8_t dio0,uint32_t band,uint8_t sf):
FDRSBase(gtwy_mac,reading_id),
_miso(miso),
_mosi(mosi),

View File

@ -84,10 +84,9 @@ public:
void send();
private:
uint8_t _gtwy_mac;
const uint16_t _espnow_size;
uint8_t _gtwyAddress[3];
uint8_t _reading_id;
uint8_t _data_count;
DataReading *fdrsData;
@ -101,7 +100,7 @@ class FDRS_EspNow: public FDRSBase{
public:
FDRS_EspNow(uint8_t gtwy_mac, uint8_t reading_id);
private:
uint8_t _gatewayAddress[ESP_GATEWAY_ADDRESS_SIZE];