set loop to 30

This commit is contained in:
Harald Pichler 2017-03-18 20:42:47 +01:00
parent 2942868799
commit 918b20f3cf
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -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);
*/
}