avoid warning in battery_service_server

This commit is contained in:
Matthias Ringwald 2016-12-22 17:54:09 +01:00
parent 8084ae4a58
commit fecc923b73

View File

@ -93,8 +93,8 @@ void battery_service_server_init(uint8_t value){
battery_value = value;
// get service handle range
uint16_t start_handle;
uint16_t end_handle;
uint16_t start_handle = 0;
uint16_t end_handle = 0xfff;
int service_found = gatt_server_get_get_handle_range_for_service_with_uuid16(ORG_BLUETOOTH_SERVICE_BATTERY_SERVICE, &start_handle, &end_handle);
if (!service_found) return;