mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
fix name battery_service_server_set_battery_value
This commit is contained in:
parent
8577affdb5
commit
2630ffe4ed
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user