diff --git a/example/le_counter.c b/example/le_counter.c index 6b08e0136..ac9c45e0a 100644 --- a/example/le_counter.c +++ b/example/le_counter.c @@ -159,7 +159,7 @@ static void heartbeat_handler(struct btstack_timer_source *ts){ if (battery < 50) { battery = 100; } - battery_service_set_server_battery_value(battery); + battery_service_server_set_battery_value(battery); btstack_run_loop_set_timer(ts, HEARTBEAT_PERIOD_MS); btstack_run_loop_add_timer(ts); diff --git a/src/ble/battery_service_server.c b/src/ble/battery_service_server.c index faaad599c..2d823411f 100644 --- a/src/ble/battery_service_server.c +++ b/src/ble/battery_service_server.c @@ -110,7 +110,7 @@ void battery_service_server_init(uint8_t value){ att_register_service_handler(&battery_service); } -void battery_service_set_server_battery_value(uint8_t value){ +void battery_service_server_set_battery_value(uint8_t value){ battery_value = value; if (battery_value_client_configuration){ battery_callback.callback = &battery_service_can_send_now; diff --git a/src/ble/battery_service_server.h b/src/ble/battery_service_server.h index 89108a608..6631a2be6 100644 --- a/src/ble/battery_service_server.h +++ b/src/ble/battery_service_server.h @@ -61,7 +61,7 @@ void battery_service_server_init(uint8_t battery_value); * @note triggers notifications if subscribed * @param battery_value in range 0-100 */ -void battery_service_set_server_battery_value(uint8_t battery_value); +void battery_service_server_set_battery_value(uint8_t battery_value); /* API_END */