just layout cleanup

This commit is contained in:
Morgan 'ARR\!' Allen 2021-09-08 16:09:59 -07:00
parent 64fa0db702
commit 20871b9059

View file

@ -78,9 +78,7 @@ static const struct ble_gatt_svc_def service_defs[] = {
BLE_CHAR_PUMP_ENABLED(2), BLE_CHAR_PUMP_ENABLED(2),
BLE_CHAR_PUMP_ENABLED(3), BLE_CHAR_PUMP_ENABLED(3),
BLE_CHAR_PUMP_ENABLED(4), BLE_CHAR_PUMP_ENABLED(4),
{ { 0 }
0, // No more characteristics in this service.
}
}, },
}, { }, {
.type = BLE_GATT_SVC_TYPE_PRIMARY, .type = BLE_GATT_SVC_TYPE_PRIMARY,
@ -90,27 +88,21 @@ static const struct ble_gatt_svc_def service_defs[] = {
BLE_CHAR_PUMP_STATE(2), BLE_CHAR_PUMP_STATE(2),
BLE_CHAR_PUMP_STATE(3), BLE_CHAR_PUMP_STATE(3),
BLE_CHAR_PUMP_STATE(4), BLE_CHAR_PUMP_STATE(4),
{ { 0 }
0, // No more characteristics in this service. },
}
}
}, { }, {
.type = BLE_GATT_SVC_TYPE_PRIMARY, .type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLE_SERVICE_PUMP_DURATION), .uuid = BLE_UUID16_DECLARE(BLE_SERVICE_PUMP_DURATION),
.characteristics = (struct ble_gatt_chr_def[]) { .characteristics = (struct ble_gatt_chr_def[]) {
BLE_CHAR_PUMP_DURATION(1), BLE_CHAR_PUMP_DURATION(1),
BLE_CHAR_PUMP_DURATION(2), BLE_CHAR_PUMP_DURATION(2),
BLE_CHAR_PUMP_DURATION(3), BLE_CHAR_PUMP_DURATION(3),
BLE_CHAR_PUMP_DURATION(4), BLE_CHAR_PUMP_DURATION(4),
{ { 0 }
0, // No more characteristics in this service.
}
}, },
}, { }, {
.type = BLE_GATT_SVC_TYPE_PRIMARY, .type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLE_SERVICE_BARBACK), .uuid = BLE_UUID16_DECLARE(BLE_SERVICE_BARBACK),
.characteristics = (struct ble_gatt_chr_def[]) { .characteristics = (struct ble_gatt_chr_def[]) {
{ {
.uuid = BLE_UUID16_DECLARE(CHAR_POUR), .uuid = BLE_UUID16_DECLARE(CHAR_POUR),