From 918b20f3cf256355af0c0de42ee03f31763ae5e7 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Sat, 18 Mar 2017 20:42:47 +0100 Subject: [PATCH] set loop to 30 --- examples/osd/arduino-bmp280/project-conf.h | 2 +- examples/osd/arduino-bmp280/sketch.pde | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/osd/arduino-bmp280/project-conf.h b/examples/osd/arduino-bmp280/project-conf.h index e25aed53c..b52067590 100644 --- a/examples/osd/arduino-bmp280/project-conf.h +++ b/examples/osd/arduino-bmp280/project-conf.h @@ -38,7 +38,7 @@ #define SICSLOWPAN_CONF_FRAG 1 -#define LOOP_INTERVAL (10 * CLOCK_SECOND) +#define LOOP_INTERVAL (30 * CLOCK_SECOND) /* Save energy */ //#define RDC_CONF_PT_YIELD_OFF diff --git a/examples/osd/arduino-bmp280/sketch.pde b/examples/osd/arduino-bmp280/sketch.pde index 41467cfdc..1da364977 100644 --- a/examples/osd/arduino-bmp280/sketch.pde +++ b/examples/osd/arduino-bmp280/sketch.pde @@ -56,10 +56,11 @@ void setup (void) rest_activate_resource (&res_bmpalt, "s/alt"); rest_activate_resource (&res_battery, "s/battery"); #pragma GCC diagnostic pop + mcu_sleep_set(128); } // at project-conf.h -// LOOP_INTERVAL (10 * CLOCK_SECOND) +// LOOP_INTERVAL (30 * CLOCK_SECOND) void loop (void) { bmptemp = bme.readTemperature(); @@ -74,8 +75,10 @@ void loop (void) // Debug Print +/* printf("Temp: %s\n",bmptemp_s); printf("Press: %s\n",bmppress_s); printf("Altitude: %s\n",bmpalt_s); printf("atm: %s\n",bmpatm_s); +*/ }