mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
remove dead code
This commit is contained in:
parent
d2ec720484
commit
657b845f95
@ -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),
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user