Allow building igate mode from platformio file

platformio
sh123 2022-12-18 12:51:29 +02:00
rodzic c1a5770292
commit a5d1193783
2 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -18,7 +18,9 @@
#define CFG_LOG_LEVEL DebugLogLevel::LVL_INFO
// select between client mode and APRS-IS gate mode
#ifndef CFG_IS_CLIENT_MODE
#define CFG_IS_CLIENT_MODE true // false - server mode (APRS-IS gate mode)
#endif
// change pinouts if not defined through native board LORA_* definitions
#ifndef LORA_RST

Wyświetl plik

@ -6,6 +6,8 @@ default_envs = esp32dev
platform = espressif32
framework = arduino
monitor_speed = 115200
board_build.partitions = min_spiffs.csv
upload_protocol = esptool
lib_deps=
hideakitai/DebugLog @ 0.6.6
contrem/arduino-timer @ 2.3.1
@ -15,5 +17,11 @@ lib_deps=
[env:esp32dev]
board = esp32dev
board_build.f_cpu = 80000000L
board_build.partitions = min_spiffs.csv
upload_protocol = esptool
build_flags =
'-D CFG_IS_CLIENT_MODE=true'
[env:esp32dev_igate]
board = esp32dev
board_build.f_cpu = 240000000L
build_flags =
'-D CFG_IS_CLIENT_MODE=false'