This commit is contained in:
Klaus K Wilting 2018-11-25 12:49:49 +01:00
parent 222dfb5a95
commit 165f2813f5
2 changed files with 17 additions and 10 deletions

View File

@ -60,9 +60,8 @@ lib_deps_all =
${common.lib_deps_rgbled}
${common.lib_deps_gps}
build_flags_basic =
;-include include/wifiscan.h
-include $PROJECTSRC_DIR/hal/${PIOENV}.h
-include $PROJECTSRC_DIR/paxcounter.conf
'-include $PROJECTSRC_DIR/hal/${PIOENV}.h'
'-include $PROJECTSRC_DIR/paxcounter.conf'
-w
;'-DARDUINO_LMIC_PROJECT_CONFIG_H="/$PROJECTSRC_DIR/lmic_config.h"'
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'

View File

@ -48,14 +48,22 @@ bool bme_read(void) {
*/
}
/*
//Call to endless loop function which reads and processes data based on
//sensor settings
// loop function which reads and processes data based on sensor settings
void bme_loop(void *pvParameters) {
configASSERT(((uint32_t)pvParameters) == 1); // FreeRTOS check
#ifdef HAS_BME
// State is saved every 10.000 samples, which means every 10.000 * 3 secs =
// 500 minutes
bsec_iot_loop(sleep, get_timestamp_us, output_ready, state_save, 10000);
*/
vTaskDelete(NULL); // shoud never be reached
#endif
} // bme_loop()
int8_t user_i2c_read(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data,
uint16_t len) {