revert change main.h -> main.conf

This commit is contained in:
Klaus K Wilting 2018-03-30 20:57:00 +02:00
parent 4b46c19db0
commit ec5f781cfc
6 changed files with 21 additions and 21 deletions

View File

@ -10,7 +10,7 @@
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
env_default = heltec_wifi_lora_32
;env_default = heltec_wifi_lora_32
;env_default = ttgov1
env_default = ttgov2
;env_default = lopy
@ -34,9 +34,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/heltec.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE
@ -56,9 +56,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/ttgov1.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE
@ -78,9 +78,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/ttgov2.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE
@ -101,9 +101,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/lopy.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE
@ -124,9 +124,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/lopy4.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE
@ -148,9 +148,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/lolin32lite_lora.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE
@ -172,9 +172,9 @@ build_flags =
;needed for ESP32 BLE Ardunio v0.4.9
-fexceptions
-std=c++11
;override lora settings from LMiC library in lmic/config.h and use main.conf instead
;override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.conf"
-include "src/main.h"
-include "src/hal/lolin32_lora.h"
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
; -DCONFIG_FREERTOS_UNICORE

View File

@ -1,6 +1,6 @@
/* configmanager persists runtime configuration using NVRAM of ESP32*/
#include "main.conf"
#include "main.h"
#include "globals.h"
#include <nvs.h>
#include <nvs_flash.h>
@ -19,7 +19,7 @@ esp_err_t err;
// populate cfg vars with factory settings
void defaultConfig() {
cfg.lorasf = LORASFDEFAULT; // 7-12, initial lora spreadfactor defined in main.conf
cfg.lorasf = LORASFDEFAULT; // 7-12, initial lora spreadfactor defined in main.h
cfg.txpower = 15; // 2-15, lora tx power
cfg.adrmode = 1; // 0=disabled, 1=enabled
cfg.screensaver = 0; // 0=disabled, 1=enabled

View File

@ -1,5 +1,5 @@
// Basic Config
#include "main.conf"
#include "main.h"
#include "globals.h"
// LMIC-Arduino LoRaWAN Stack

View File

@ -22,7 +22,7 @@ Refer to LICENSE.txt file in repository for more details.
*/
// Basic Config
#include "main.conf"
#include "main.h"
#include "globals.h"
// OLED driver

View File

@ -3,7 +3,7 @@
// checks commands and executes each command with 1 argument per command
// Basic Config
#include "main.conf"
#include "main.h"
#include "globals.h"
// LMIC-Arduino LoRaWAN Stack

View File

@ -1,5 +1,5 @@
// Basic Config
#include "main.conf"
#include "main.h"
#include "globals.h"
// ESP32 Functions