aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused submodule QCBOR (#2138)NeroBurner2024-10-091-0/+0
| | | | The submodule isn't used anymore. Remove the submodule reference completely.
* 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`
* Remove unused pointer to DisplayApp member variables (#2125)NeroBurner2024-09-299-14/+6
| | | | | | | | In the screens that use `DisplayApp *app` and pass it to a child item, or use the reference just in the constructor. Afterwards the `app` member is not used. So remove it from the private member variables. Completely remove `app` parameter from `SettingDisplay` constructor as it is unused.
* Alarm persist to flash (#1367)NeroBurner2024-09-285-48/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | * AlarmController: Add saving alarm time to file Save the set alarm time to the SPI NOR flash, so it does not reset to the default value when the watch resets, e.g. due to watchdog timeout or reflashing of a new version of InfiniTime. Just like the `Settings.h` `LoadSettingsFromFile()` the previous alarm at boot (if available) and `SaveSettingsToFile()` the current alarm when the `Alarm.h` screen is closed (only if the settings have changed). The alarm-settings file is stored in `.system/alarm.dat`. The `.system` folder is created if it doesn't yet exist. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/1330 * alarmController: close .system dir after usage Close the `lfs_dir` object for the `.system` dir after usage. Otherwise on the second changed alarm the system will lockup because the `.system` dir is already open and was never closed. --------- Co-authored-by: Galdor Takacs <g@ldor.de>
* Hrs3300: fix includes for std::begin/std::endReinhold Gschweicher2024-09-221-0/+1
| | | | | | | | | | | | | | | Fix for Hrs3300 PR about Atomic HRS reads: https://github.com/InfiniTimeOrg/InfiniTime/pull/1845 We use `std::begin` and `std::end`, but we don't include one of the headers that define those functions. See https://en.cppreference.com/w/cpp/iterator/begin for a list of headers that define `std::begin` and `std::end`. Starting with GCC 14 this leads to a compilation error presumably because they cleaned up their headers. Fix code by inlcuding `<iterator>`
* Atomic HRS reads (#1845)mark90642024-09-225-37/+37
| | | | | | | | | | - Combine the reading of all `HRS3300` registers into one I2C read so data is not partial - Downsizes both HRS and ALS to 16bit as the sensor does not generate larger than 16bit values in its current configuration - Increasing the resolution by 1 bit doubles the sensor acquisition time, since we are already at 10Hz we are never going to use a higher resolution - The PPG algorithm buffers for ALS/HRS are already 16bit anyway - Remove functions for setting gain / drive that are unused throughout the codebase - Calculate constants with constexpr
* Refactor doNotGoToSleep to a wakelock countermark90642024-09-2117-41/+87
|
* Refactor SystemTask state handling for resiliencemark90642024-09-215-88/+100
| | | | | | 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
* Remove unused method declarationsmark90642024-09-211-3/+0
|
* notifications: Dismiss to watchface when empty (#1716)Eli Tan2024-09-181-4/+5
| | | | | | | | | Set `running` to false to flag end of watchface when there are no more notifications left to display. I found it slightly annoying that dismissing all notifications leaves me with a "No notification to display" message. Instead of dismissing to a relatively useless message, dismiss to watchface.
* Restrict debugging monitor to debug buildsmark90642024-09-141-1/+1
|
* Clean unused DisplayApp messagesmark90642024-09-143-34/+7
|
* Use DirtyValue for timermark90642024-09-142-8/+14
|
* Size optimise NRF SDK buildmark90642024-09-141-1/+0
|
* DisplayApp: Go to clock on sleep if no app loadedVictor Kareh2024-08-221-2/+14
| | | | | | When turning off the screen, if there is no actual app loaded (i.e. we are still in the Launcher, Notifications, QuickSettings, or Settings screens) we should just reload the Clock app directly.
* Advertise HR servicemark90642024-08-184-12/+11
|
* Remove space before colonDerry Tutt2024-08-181-2/+2
|
* Display the SPI flash JEDEC IDs in SystemInformation.Jean-François Milants2024-08-059-13/+38
| | | | This is needed since a new memory chip will be used in future batches of PineTimes.
* aod: simplify AOD disablement based on notification statusmark90642024-08-051-32/+5
|
* aod: avoid spinning DisplayApp under high LVGL loadmark90642024-08-051-7/+9
|
* aod: run LVGL task handler until all work finishedmark90642024-08-051-1/+3
|
* aod: constant frequency idle framesmark90642024-08-052-1/+55
|
* aod: porch control: 2Hz idle + 75Hz onmark90642024-08-052-14/+38
|
* aod: lower lcd voltagemark90642024-08-052-0/+9
|
* aod: lower voltage going to the displayJohn Crawford2024-08-052-0/+17
|
* aod: fix flashlight brightness restoremark90642024-08-052-0/+3
|
* aod: fix brightness getting stuck highmark90642024-08-053-9/+9
|
* aod: lower refresh rate when always onJohn Crawford2024-08-052-0/+44
|
* aod: switch to 8 colors when always onJohn Crawford2024-08-053-1/+30
|
* aod: disable while in notification sleepJohn Crawford2024-08-052-7/+38
|
* aod: integrate with display timeoutJohn Crawford2024-08-053-17/+28
|
* aod: PPI/RTC-based backlight brightnessmark90642024-08-054-16/+146
|
* feat: always on displayKaffeinatedKat2024-08-055-9/+43
|
* Batch display command argumentsmark90642024-06-192-35/+32
|
* Continuous time updatesJean-François Milants2024-06-091-0/+41
| | | | Add TODO.md in src/components/datetime. This file give detailed information about a refactoring of the DateTimeController that would be nice to do in the future.
* Include assert (fix sim)mark90642024-06-091-0/+1
|
* Continuous time updatesmark90642024-06-096-26/+43
|
* Remove unnecessary BMA421 readsFelipe Martínez2024-06-021-7/+0
|
* Move motorController.Init call to DisplayApp::StartFelipe Martinez2024-06-021-1/+1
|
* Fix erratum 58 workaroundmark90642024-05-122-26/+43
|
* Include task header (Fixes sim)mark90642024-05-011-0/+1
|
* Move includes backmark90642024-05-012-3/+4
|
* Apply display driver datasheet delaysmark90642024-05-012-9/+45
|
* Use FreeRTOS delay instead of spinning the CPUmark90642024-05-011-7/+6
|
* Rename to pre-transaction hookmark90642024-05-016-10/+10
|
* Avoid storing lambdamark90642024-05-016-29/+14
|
* Refactor lambdasmark90642024-05-012-20/+18
|
* Use functional abstraction for hooksmark90642024-05-018-28/+38
|
* Refactor display WriteToRammark90642024-05-012-5/+4
|
* Remove task to notifymark90642024-05-017-29/+4
|