patches for new paths in platformio core 4.0.0a15

This commit is contained in:
Verkehrsrot 2019-05-25 16:32:57 +02:00
parent 47647bc604
commit d04a04adfa
3 changed files with 10 additions and 7 deletions

View File

@ -93,7 +93,7 @@ If your device has a **real time clock** it can be updated bei either LoRaWAN ne
# Building
Use <A HREF="https://platformio.org/">PlatformIO</A> with your preferred IDE for development and building this code. Make sure you have latest PlatformIO version.
Use <A HREF="https://platformio.org/">PlatformIO</A> with your preferred IDE for development and building this code. Make sure you have latest PlatformIO version, **at least v4.0.0a15**.
# Uploading

View File

@ -6,7 +6,7 @@
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
;env_default = generic
env_default = generic
;env_default = ebox
;env_default = eboxtube
;env_default = ecopower
@ -24,7 +24,7 @@
;env_default = lolin32litelora
;env_default = lolin32lora
;env_default = lolin32lite
env_default = wemos32oled
;env_default = wemos32oled
;env_default = octopus32
;env_default = ecopower, eboxtube, heltec, ttgobeam, lopy4, lopy, ttgov21old, ttgov21new, ttgofox
;
@ -74,7 +74,10 @@ build_flags_basic =
-include "src/hal/${PIOENV}.h"
-include "src/paxcounter.conf"
-w
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'
;use this is you have platformio version >= 4.0.0a15
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../../../src/lmic_config.h'
;use this is you have platformio version < 4.0.0a15
;'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
'-DBINTRAY_PACKAGE="${PIOENV}"'

View File

@ -10,10 +10,10 @@
* AES encryption using ESP32's hardware AES unit.
*******************************************************************************/
#include "mbedtls/aes.h"
#include "lmic/oslmic.h"
#ifdef USE_MBEDTLS_AES
#if defined USE_MBEDTLS_AES
#include "mbedtls/aes.h"
#include "../../lmic/oslmic.h"
void lmic_aes_encrypt(u1_t *data, u1_t *key)
{