aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble
Commit message (Collapse)AuthorAgeFilesLines
* Step counter historyHunman2025-11-081-2/+2
| | | Store 2 days steps history and display yesterday's steps on the Steps screen
* Move TemperatureColor to SimpleWeatherService for reusabilityScott2025-11-081-0/+14
|
* ImmediateAlertService: fix latent bug (#2159)Dāvis Mošenkovs2025-11-041-1/+2
| | | | | Include null terminator in the bytes copied. Set notif.size as it is done in AlertNotificationService.cpp and AlertNotificationClient.cpp.
* Fix typos/formattingmark90642025-10-162-13/+18
|
* Remove unused motion subscribed methodmark90642025-10-162-5/+0
|
* Setting to disable DFU and FS access (#1891)Dāvis Mošenkovs2025-09-034-0/+39
| | | | | | | | | | | | | | * Expose SystemTask dependency controllers Expose NotificationManager and Settings for use by the feature in next commit. This is a memory efficient way for accessing SystemTask dependencies from controllers that have SystemTask injected as a dependency. Looks like each direct dependency injection uses 4 bytes RAM. As InfiniTime is close to running out of RAM (using 16 more bytes causes build to fail with "ld: region RAM overflowed with stack") it might be helpful to use this approach more. * Add setting to disable DFU and FS access
* (small) Music App Redesign (#2292)Titus2025-06-291-3/+3
|
* Fix conflict in NotificationManagerJean-François Milants2025-05-211-1/+1
|\
| * notification: Initialise messageFinlay Davidson2023-03-161-1/+1
| | | | | | | | | | | | Prevents reading uninitialised memory if notification gets cut off due to being more than 100 chars. The last character is assumed to be \0, but it is actually uninitialised.
* | weather: Switch to std::optional for Forecast daysFintasticMan2024-11-042-6/+6
| | | | | | | | | | Also only iterate over the number of days actually in use, rather than MaxNbForecastDays.
* | Switch to simpler temperature interfaceFintasticMan2024-11-042-16/+40
| |
* | weather: Refactor temperature type for type safetyFintasticMan2024-11-042-20/+21
| | | | | | | | | | | | | | There is now a Temperature struct in the weather service, which holds the internal representation. There is also a temperature struct in the Applications namespace, which holds the temperature in either Celsius or Fahrenheit.
* | SimpleWeatherService #include <array>Lionel Elie Mamane2024-10-271-1/+1
| | | | | | | | | | | | not <vector> as that is what is actually used. Fixes build failure InfiniTime/src/components/ble/SimpleWeatherService.h:86:18: error: field ‘location’ has incomplete type ‘Pinetime::Controllers::SimpleWeatherService::Location’ {aka ‘std::array<char, 33>’
* | MusicService: add missing includes for TickType_t and xTaskGetTickCount (#2130)NeroBurner2024-09-292-0/+3
| | | | | | | | | | Add `FreeRTOS.h` include for the directly used data type `TickType_t` in the header and the function `xTaskGetTickCount` from FreeRTOS's `task.h`
* | Refactor SystemTask state handling for resiliencemark90642024-09-212-5/+13
| | | | | | | | | | | | State transitions now happen immediately where possible This simplifies state management in general, and prevents bugs such as the chime issue from occurring in the first place
* | Advertise HR servicemark90642024-08-184-12/+11
| |
* | Continuous time updatesmark90642024-06-092-3/+3
| |
* | Fix conflicts of min and max from stl_algo.h (included from atomic)Ritvik2024-03-131-1/+1
| |
* | Fix OOB flash write when DFU interruptedmark90642024-02-141-0/+2
| | | | | | | | If a DFU is restarted, the write indices aren't reset causing the image to be written out of bounds. The CRC check prevents the faulty image from booting but LittleFS still gets nuked.
* | SimpleWeatherService: Add forecast operator overrides (#2011)Victor Kareh2024-02-102-0/+17
| | | | | | | | Any screen that relies on DirtyValue to display up-to-date forecast data would require the struct to provide an operator override for comparison.
* | Only inhibit sleep if motion notifications are enabled, not just Bluetoothapilat2024-01-232-0/+5
| |
* | Simple Weather Service : Fix timestampJean-François Milants2024-01-041-2/+2
| | | | | | | | | | In the documentation, specify that the timestamp is expressed in seconds from epoch (instead of nanoseconds). SimpleWeatherService now uses "localtime" (GetCurrentDateTime()) instead of UTC time.
* | weather: Add function for temperature in FahrenheitFintasticMan2023-12-231-0/+4
| |
* | Simple Weather ServiceJean-François Milants2023-12-231-1/+1
| | | | | | | | | | Fix ToUInt64() in SimpleWeatherService.cpp. Fix typo in SimpleWeatherService.md.
* | Simple Weather ServiceJean-François Milants2023-12-232-21/+14
| | | | | | | | Fix code formatting.
* | Simple Weather ServiceJean-François Milants2023-12-232-16/+31
| | | | | | | | Store temperatures as int16_t (instead of uint8_t previously). The temperature is expressed in °C * 100.
* | Simple Weather ServiceJean-François Milants2023-12-232-14/+16
| | | | | | | | Code improvements : icon fields are now typed as Icons, move the location string when creating a new instance of CurrentWeather, fix SimpleWeatherService::CurrentWeather::operator== (location was missing from the comparison).
* | Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-231-6/+6
| | | | | | | | | | Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
* | Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-232-25/+15
| | | | | | | | | | | | | | Add missing icons (heavy clouds, thunderstorm, snow). Remove unneeded comparison operator (!=), improve conversion of Timestamp and MessageType, order includes. Fix typo in documentation. Remove not related change in StopWatch.
* | Simple Weather Service : fix out of bounds access while creating Forecast ↵Jean-François Milants2023-12-232-3/+9
| | | | | | | | instance.
* | SimpleWeather service : new weather implementationJean-François Milants2023-12-232-49/+60
| | | | | | | | Fix recovery firmware and code formatting.
* | SimpleWeather service : new weather implementationJean-François Milants2023-12-236-1171/+287
| | | | | | | | | | | | | | | | | | | | This new implementation of the weather feature provides a new BLE API and a new weather service. The API uses a single characteristic that allows companion apps to write the weather conditions (current and forecast for the next 5 days). The SimpleWeather service exposes those data as std::optional fields. This new implementation replaces the previous WeahterService. The API is documented in docs/SimpleWeatherService.md.
* | weather: Fix GetCurrent* functions returning future events (#1879)FintasticMan2023-10-061-9/+18
| |
* | NotificationManager.h: Reorder notification struct fields to allow easier ↵Max Friedrich2023-07-091-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | creation. (#1774) This commit changes the order for the notification struct fields to allow the creation of notifications using a string literal. ```cpp NotificationManager::Notifiation notification { "String literal with notification text", 42, NotificationManager::Categories::SimpleAlert }; ``` Co-authored-by: minacode <minamoto9@web.de>
* | WeatherService: const DateTimeController referenceRiku Isokoski2023-03-192-3/+3
| |
* | HeartRateService: Remove SystemTask dependencyRiku Isokoski2023-03-193-11/+8
| |
* | MotionService: Remove SystemTask dependencyRiku Isokoski2023-03-193-12/+9
| |
* | NavigationService: Remove unused SystemTask refRiku Isokoski2023-03-193-11/+2
| |
* | WeatherService: Remove unused SystemTask referenceRiku Isokoski2023-03-193-10/+3
| |
* | MusicService: Remove SystemTask dependencyRiku Isokoski2023-03-193-10/+8
|/
* date: Remove date libRiku Isokoski2023-02-251-0/+1
| | | | DateTimeController can provide everything we need.
* DateTimeController: Remove SetTime tick parameterRiku Isokoski2023-02-253-7/+2
| | | | | | The systick doesn't need to be updated when setting time. Also removed unused nrf_rtc.h includes.
* src: Enable unused parameter warningRiku Isokoski2023-01-2424-72/+70
| | | | | | Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
* Format header filesFinlay Davidson2023-01-0914-0/+38
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Update clang-{format,tidy} to 14Finlay Davidson2023-01-042-0/+2
| | | | | Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check.
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-1/+1
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* BLE CTS: fixed signedness of timezoneuli2022-11-251-2/+2
|
* WeatherService daily min/max temperature fixes (#1455)kieranc2022-11-251-6/+8
| | | | * Min/Max function fixes * Faster way to calculate day start
* add CTS local time characteristic and use it to provide UTC in ↵uli2022-11-114-53/+99
| | | | DateTimeController
* Edit all occurences of "watchface" to "watch face"mashuptwice2022-10-101-3/+3
|