code sanitizations
This commit is contained in:
		
							parent
							
								
									54a38c3ce7
								
							
						
					
					
						commit
						8eae041833
					
				| @ -11,8 +11,8 @@ | ||||
| 
 | ||||
| ; ---> SELECT TARGET PLATFORM HERE! <--- | ||||
| [platformio] | ||||
| env_default = lolin32lite, heltec, generic | ||||
| ;env_default = generic | ||||
| ;env_default = lolin32lite, heltec, generic | ||||
| env_default = generic | ||||
| ;env_default = heltec | ||||
| ;env_default = ttgov1 | ||||
| ;env_default = ttgov2 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef antenna_H | ||||
| #define antenna_H | ||||
| #ifndef _ANTENNA_H | ||||
| #define _ANTENNA_H | ||||
| 
 | ||||
| void antenna_init(void); | ||||
| void antenna_select(const uint8_t _ant); | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef battery_H | ||||
| #define battery_H | ||||
| #ifndef _BATTERY_H | ||||
| #define _BATTERY_H | ||||
| 
 | ||||
| #include <driver/adc.h> | ||||
| #include <esp_adc_cal.h> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef BLESCAN_H | ||||
| #define BLESCAN_H | ||||
| #ifndef _BLESCAN_H | ||||
| #define _BLESCAN_H | ||||
| 
 | ||||
| #include "macsniff.h" | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef CONFIGMANAGER_H | ||||
| #define CONFIGMANAGER_H | ||||
| #ifndef _CONFIGMANAGER_H | ||||
| #define _CONFIGMANAGER_H | ||||
| 
 | ||||
| void eraseConfig(void); | ||||
| void saveConfig(void); | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef DISPLAY_H | ||||
| #define DISPLAY_H | ||||
| #ifndef _DISPLAY_H | ||||
| #define _DISPLAY_H | ||||
| 
 | ||||
| #include <U8x8lib.h> | ||||
| 
 | ||||
|  | ||||
| @ -1,3 +1,6 @@ | ||||
| #ifndef _GLOBALS_H | ||||
| #define _GLOBALS_H | ||||
| 
 | ||||
| // The mother of all embedded development...
 | ||||
| #include <Arduino.h> | ||||
| 
 | ||||
| @ -42,6 +45,10 @@ extern std::set<uint16_t> macs; | ||||
| extern hw_timer_t *channelSwitch, *sendCycle; | ||||
| extern portMUX_TYPE timerMux; | ||||
| 
 | ||||
| #ifdef HAS_GPS | ||||
| #include "gps.h" | ||||
| #endif | ||||
| 
 | ||||
| #ifdef HAS_LORA | ||||
| #include "lorawan.h" | ||||
| #endif | ||||
| @ -50,20 +57,6 @@ extern portMUX_TYPE timerMux; | ||||
| #include "display.h" | ||||
| #endif | ||||
| 
 | ||||
| #ifdef HAS_GPS | ||||
| #include "gps.h" | ||||
| /*
 | ||||
| typedef struct { | ||||
|   uint32_t latitude; | ||||
|   uint32_t longitude; | ||||
|   uint8_t satellites; | ||||
|   uint16_t hdop; | ||||
|   uint16_t altitude; | ||||
| } gpsStatus_t; | ||||
| extern gpsStatus_t gps_status; // struct for storing gps data
 | ||||
| */ | ||||
| #endif | ||||
| 
 | ||||
| #ifdef BLECOUNTER | ||||
| #include "blescan.h" | ||||
| #endif | ||||
| @ -94,4 +87,6 @@ extern CayenneLPP payload; | ||||
| void reset_counters(void); | ||||
| void blink_LED(uint16_t set_color, uint16_t set_blinkduration); | ||||
| void led_loop(void); | ||||
| uint64_t uptime(); | ||||
| uint64_t uptime(); | ||||
| 
 | ||||
| #endif | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef gps_H | ||||
| #define gps_H | ||||
| #ifndef _GPS_H | ||||
| #define _GPS_H | ||||
| 
 | ||||
| #include <TinyGPS++.h>         // library for parsing NMEA data | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef hash_H | ||||
| #define hash_H | ||||
| #ifndef _HASH_H | ||||
| #define _HASH_H | ||||
| 
 | ||||
| uint32_t rokkit(const char *data, int len); | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef led_H | ||||
| #define led_H | ||||
| #ifndef _LED_H | ||||
| #define _LED_H | ||||
| 
 | ||||
| #ifdef HAS_RGB_LED | ||||
| #include <SmartLeds.h> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef LORAWAN_H | ||||
| #define LORAWAN_H | ||||
| #ifndef _LORAWAN_H | ||||
| #define _LORAWAN_H | ||||
| 
 | ||||
| // LMIC-Arduino LoRaWAN Stack
 | ||||
| #include <lmic.h> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef MACSNIFF_H | ||||
| #define MACSNIFF_H | ||||
| #ifndef _MACSNIFF_H | ||||
| #define _MACSNIFF_H | ||||
| 
 | ||||
| // ESP32 Functions
 | ||||
| #include <esp_wifi.h> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef main_H | ||||
| #define main_H | ||||
| #ifndef _MAIN_H | ||||
| #define _MAIN_H | ||||
| 
 | ||||
| #include "led.h" | ||||
| #include "macsniff.h" | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| 
 | ||||
| #ifndef _PAYLOAD_H_ | ||||
| #define _PAYLOAD_H_ | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef rcommand_H | ||||
| #define rcommand_H | ||||
| #ifndef _RCOMMAND_H | ||||
| #define _RCOMMAND_H | ||||
| 
 | ||||
| #include "senddata.h" | ||||
| #include "configmanager.h" | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #ifndef SENDDATA_H | ||||
| #define SENDDATA_H | ||||
| #ifndef _SENDDATA_H | ||||
| #define _SENDDATA_H | ||||
| 
 | ||||
| void senddata(uint8_t port); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user