house keeping

Added some comments for easier browsing through the source and corrected a type.
This commit is contained in:
Sascha 2022-07-15 14:09:40 +02:00
parent dbf6d5b082
commit 087b9f30c8
5 changed files with 15 additions and 8 deletions

View File

@ -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__

View File

@ -36,4 +36,4 @@ typedef struct Peer_t{
}Peer_t;
#endif
#endif //__FDRS_TYPES_H__

View File

@ -36,4 +36,4 @@ typedef struct Peer_t{
}Peer_t;
#endif
#endif //__FDRS_TYPES_H__

View File

@ -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;

View File

@ -30,4 +30,4 @@
#define LONGITUDE_T 22 // GPS Longitude
#define ALTITUDE_T 23 // GPS Altitude
#endif
#endif //FDRS_DATA_TYPES