mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
house keeping
Added some comments for easier browsing through the source and corrected a type.
This commit is contained in:
parent
dbf6d5b082
commit
087b9f30c8
@ -3,6 +3,11 @@
|
||||
// GATEWAY 2.000 Functions
|
||||
// This is the 'meat and potatoes' of FDRS, and should not be fooled with unless improving/adding features.
|
||||
// Developed by Timm Bogner (timmbogner@gmail.com)
|
||||
|
||||
#ifndef __FDRS_FUNCTIONS_H__
|
||||
#define __FDRS_FUNCTIONS_H__
|
||||
|
||||
|
||||
enum {
|
||||
event_clear,
|
||||
event_espnowg,
|
||||
@ -571,7 +576,7 @@ void releaseLoRa(uint8_t interface) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif //USE_LORA
|
||||
}
|
||||
void releaseSerial() {
|
||||
DBG("Releasing Serial.");
|
||||
@ -652,7 +657,7 @@ void begin_espnow() {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif //ESP8266
|
||||
DBG(" ESP-NOW Initialized.");
|
||||
}
|
||||
void begin_lora() {
|
||||
@ -668,7 +673,7 @@ void begin_lora() {
|
||||
}
|
||||
LoRa.setSpreadingFactor(FDRS_SF);
|
||||
DBG(" LoRa initialized.");
|
||||
#endif
|
||||
#endif //USE_LORA
|
||||
}
|
||||
void begin_SD() {
|
||||
#ifdef USE_SD_LOG
|
||||
@ -682,7 +687,7 @@ void begin_SD() {
|
||||
} else {
|
||||
DBG(" SD initialized.");
|
||||
}
|
||||
#endif
|
||||
#endif //USE_SD_LOG
|
||||
}
|
||||
void begin_FS() {
|
||||
#ifdef USE_FS_LOG
|
||||
@ -699,3 +704,5 @@ void begin_FS() {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif //__FDRS_FUNCTIONS_H__
|
@ -36,4 +36,4 @@ typedef struct Peer_t{
|
||||
}Peer_t;
|
||||
|
||||
|
||||
#endif
|
||||
#endif //__FDRS_TYPES_H__
|
@ -36,4 +36,4 @@ typedef struct Peer_t{
|
||||
}Peer_t;
|
||||
|
||||
|
||||
#endif
|
||||
#endif //__FDRS_TYPES_H__
|
@ -110,7 +110,7 @@ private:
|
||||
DataReading_t *fdrsData;
|
||||
|
||||
/**
|
||||
* @brief Required impalamnetation of a paticulare sensors initialization.
|
||||
* @brief Required implementation of a paticulare sensors initialization.
|
||||
*/
|
||||
virtual void init(void) = 0;
|
||||
|
||||
|
@ -30,4 +30,4 @@
|
||||
#define LONGITUDE_T 22 // GPS Longitude
|
||||
#define ALTITUDE_T 23 // GPS Altitude
|
||||
|
||||
#endif
|
||||
#endif //FDRS_DATA_TYPES
|
Loading…
Reference in New Issue
Block a user