bugfix warning -Wwrite-strings
This commit is contained in:
parent
7000323c74
commit
6af70ee511
1 changed files with 2 additions and 1 deletions
|
@ -39,10 +39,11 @@ void setup (void)
|
||||||
}
|
}
|
||||||
// init coap resourcen
|
// init coap resourcen
|
||||||
rest_init_engine ();
|
rest_init_engine ();
|
||||||
|
#pragma GCC diagnostic ignored "-Wwrite-strings"
|
||||||
rest_activate_resource (&res_htu21dtemp, "s/temp");
|
rest_activate_resource (&res_htu21dtemp, "s/temp");
|
||||||
rest_activate_resource (&res_htu21dhum, "s/hum");
|
rest_activate_resource (&res_htu21dhum, "s/hum");
|
||||||
rest_activate_resource (&res_battery, "s/battery");
|
rest_activate_resource (&res_battery, "s/battery");
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
mcu_sleep_set(128); // Power consumtion 278uA; average over 20 minutes
|
mcu_sleep_set(128); // Power consumtion 278uA; average over 20 minutes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue