diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-10-18 23:14:39 +0200 |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-10-18 23:14:39 +0200 |
| commit | ff1fce18d6188d8b23374613f07e281173f228e7 (patch) | |
| tree | 7d8bcf5448f86f31f092f4f554a8af167c225d7d /src/components/ble/CurrentTimeService.cpp | |
| parent | c4ab17f58707771256c6fffd8db63d32e2831610 (diff) | |
| parent | ab7c6e162f82674d176466d361b1f87a0d55cf4a (diff) | |
Merge remote-tracking branch 'upstream/develop' into pts-settings
Diffstat (limited to 'src/components/ble/CurrentTimeService.cpp')
| -rw-r--r-- | src/components/ble/CurrentTimeService.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ble/CurrentTimeService.cpp b/src/components/ble/CurrentTimeService.cpp index b49be39c..eefb7ec1 100644 --- a/src/components/ble/CurrentTimeService.cpp +++ b/src/components/ble/CurrentTimeService.cpp @@ -53,7 +53,7 @@ int CurrentTimeService::OnTimeAccessed(uint16_t conn_handle, uint16_t attr_handl } CurrentTimeService::CurrentTimeService(DateTime& dateTimeController) - : characteristicDefinition {{.uuid = (ble_uuid_t*) &ctChrUuid, + : characteristicDefinition {{.uuid = &ctChrUuid.u, .access_cb = CTSCallback, .arg = this, @@ -62,7 +62,7 @@ CurrentTimeService::CurrentTimeService(DateTime& dateTimeController) serviceDefinition { {/* Device Information Service */ .type = BLE_GATT_SVC_TYPE_PRIMARY, - .uuid = (ble_uuid_t*) &ctsUuid, + .uuid = &ctsUuid.u, .characteristics = characteristicDefinition}, {0}, }, |
