fix name battery_service_server_set_battery_value

This commit is contained in:
Matthias Ringwald 2016-11-02 12:52:00 +01:00
parent 8577affdb5
commit 2630ffe4ed
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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