Merge pull request #372 from cyberman54/master

sync dev to master
This commit is contained in:
Verkehrsrot 2019-05-25 16:35:06 +02:00 committed by GitHub
commit 3f3b26ab43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 10 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

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

@ -7,9 +7,10 @@
// Hardware related definitions for lolin32lite (without LoRa shield)
#define HAS_LORA 0 // no LoRa module
#define CFG_sx1272_radio 1 // dummy
#define HAS_LED LED_BUILTIN // on board LED on GPIO5
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
#endif
// disable brownout detection (avoid unexpected reset on some boards)
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
#endif

View File

@ -40,6 +40,6 @@
// user defined sensors (if connected)
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
#endif

View File

@ -300,7 +300,7 @@ void setup() {
#endif
#if (VENDORFILTER)
strcat_P(features, " OUIFLT");
strcat_P(features, " FILTER");
#endif
// initialize display

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)
{