diff options
| author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2022-05-09 15:16:08 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2022-06-05 06:15:46 (GMT) |
| commit | 7f45538eb53235ab4015fcf13533796c8759c7bc (patch) | |
| tree | 79d9a2f60e8fb13cb5356bcc5c6e93259449530b /src/components/ble/CurrentTimeService.cpp | |
| parent | 718fbdab98ae80923a548ac03b7843f5d618a4f6 (diff) | |
Apply clang-format to all C++ files
Diffstat (limited to 'src/components/ble/CurrentTimeService.cpp')
| -rw-r--r-- | src/components/ble/CurrentTimeService.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/components/ble/CurrentTimeService.cpp b/src/components/ble/CurrentTimeService.cpp index e509aea..8430d1b 100644 --- a/src/components/ble/CurrentTimeService.cpp +++ b/src/components/ble/CurrentTimeService.cpp @@ -29,11 +29,22 @@ int CurrentTimeService::OnTimeAccessed(uint16_t conn_handle, uint16_t attr_handl CtsData result; os_mbuf_copydata(ctxt->om, 0, sizeof(CtsData), &result); - NRF_LOG_INFO( - "Received data: %d-%d-%d %d:%d:%d", result.year, result.month, result.dayofmonth, result.hour, result.minute, result.second); + NRF_LOG_INFO("Received data: %d-%d-%d %d:%d:%d", + result.year, + result.month, + result.dayofmonth, + result.hour, + result.minute, + result.second); - m_dateTimeController.SetTime( - result.year, result.month, result.dayofmonth, 0, result.hour, result.minute, result.second, nrf_rtc_counter_get(portNRF_RTC_REG)); + m_dateTimeController.SetTime(result.year, + result.month, + result.dayofmonth, + 0, + result.hour, + result.minute, + result.second, + nrf_rtc_counter_get(portNRF_RTC_REG)); } else if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) { CtsData currentDateTime; |
