Make init & loop fns static
This commit is contained in:
parent
1a5acd02a5
commit
9ea5c7b4d0
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
LOG_MODULE_REGISTER(main, LOG_LEVEL_DBG);
|
LOG_MODULE_REGISTER(main, LOG_LEVEL_DBG);
|
||||||
|
|
||||||
int prst_init() {
|
static int prst_init() {
|
||||||
RET_IF_ERR(prst_adc_init());
|
RET_IF_ERR(prst_adc_init());
|
||||||
RET_IF_ERR(prst_led_init());
|
RET_IF_ERR(prst_led_init());
|
||||||
RET_IF_ERR(prst_button_init());
|
RET_IF_ERR(prst_button_init());
|
||||||
|
|
@ -22,7 +22,7 @@ int prst_init() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prst_loop(prst_sensors_t *sensors) {
|
static int prst_loop(prst_sensors_t *sensors) {
|
||||||
RET_IF_ERR(prst_sensors_read_all(sensors));
|
RET_IF_ERR(prst_sensors_read_all(sensors));
|
||||||
RET_IF_ERR(prst_ble_adv_set_data(sensors));
|
RET_IF_ERR(prst_ble_adv_set_data(sensors));
|
||||||
RET_IF_ERR(prst_ble_adv_start());
|
RET_IF_ERR(prst_ble_adv_start());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue