aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix scrollbar (#382)Riku Isokoski2021-06-121-1/+1
|
* Fix fallthrough on case statement (#403)Jonathan Vander Mey2021-06-121-0/+1
|
* Move most of the code from the constructor of the objects statically ↵Jean-François Milants2021-06-1211-11/+29
| | | | initialized in main() into Start()/Init() functions to avoid Static Initialization Order Fiasco (https://en.cppreference.com/w/cpp/language/siof). See https://github.com/JF002/InfiniTime/pull/415#issuecomment-859004238.
* Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants2021-06-106-24/+44
| | | | code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
* Fix stack corruption when exiting an app (the app was destroyed while it was ↵Jean-François Milants2021-06-102-1/+10
| | | | executing the button handler).
* Fix build for recovery firmware.Jean-François Milants2021-06-063-4/+6
|
* Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-0628-170/+223
| | | | variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
* Add the maximum memory used by LVGL in SystemInfo app. This will help the ↵JF0022021-06-011-1/+3
| | | | developers to size the memory buffer allocated to lvgl. (#408)
* Enable various compilation flags to reduce the binary size (#401)JF0022021-06-012-38/+38
| | | | | | | | | | | | * Add the following compilation flags: * -fno-exceptions and -fno-non-call-exceptions : disable exception handling * -fno-rtti : disable run time type information (needed by dynamic_cast, for example) These flags reduce the binary size by about 100KB! Also, -fstack-usage generate debug info (not in final binary) to allow tools like Puncover to do a stack analysis. * Remove unused CMake variables in CMake_nRF5x.cmake (duplicated in src/CMakeLists.txt). Replace -O0 by -Og in DEBUG builds. This generates a smaller binary (small enough for the internal memory) that is debugger friendly.
* Remove debug defines (DEBUG & DEBUG_NRF_USER) from the build. These debug ↵JF0022021-06-012-22/+23
| | | | | | can be useful for debugging purposes but not in production (release). (#400) This reduces the size of the binary by about 6KB! This also removes filepath that were embedded into the binary (.bin) file.
* Navigation app: reduce memory usage (#362)JF0022021-06-012-120/+118
| | | | | | | * Navigation app: - Renaming and reformatting according to coding conventions - declare iconMap as constexpr and use char* instead of std::string This reduces the flash usage from 424644B to 419344B (-5300B)!
* Fix recovery DisplayApp.Jean-François Milants2021-05-212-4/+7
|
* Timer App (#355)Florian2021-05-2016-22/+385
| | | | | | | | | | | * built timer app * Style improvements * making sure buttons stay hidden when the app is reopened and reappear after the timer runs out * more sensible calculations of time deltas. eliminated that mysterious scaling factor * changing the timer icon
* removed an empty assignment that caused a compiler warning (#372)Florian2021-05-201-1/+0
|
* Fix wrong initialization of 'pinPowerPresent' pin that would prevent the ↵Jean-François Milants2021-05-171-3/+6
| | | | touchpanel from working correctly when the device boots while connected to the charger.
* Emit event on power-present toggle (#320)David Ventura2021-05-164-7/+35
| | | | | | | | | | | | | | | * Emit event on power-present toggle * clang-format on changes * also update battery status on any event * update comments; remove double battery update * Fix formatting * Vibrate shortly on charging event * debounce charge event
* Merge pull request #347 from jedi2light/feature-show-git-commit-hash-shortJF0022021-05-164-0/+18
|\ | | | | Feature: Store and show git short ref on PineTime alongside other firmware information
| * git: show git short ref hash on SystemInfo(first screen) and ↵Stoian Minaiev2021-05-143-0/+16
| | | | | | | | FirmwareValidation screen alongside other information
| * git: store git short ref hash on build stage to Version.hStoian Minaiev2021-05-141-0/+2
| |
* | better handling of long notification titlesFlorian Kraupa2021-05-161-0/+10
| |
* | DisplayApp : returnApp was renamed ReturnApp() (manual fix after multiple ↵Jean-François Milants2021-05-151-1/+1
| | | | | | | | merges).
* | Merge pull request #298 from joaquimorg/StepsAppJF0022021-05-1515-23/+544
|\ \ | | | | | | New Steps app
| * \ Merge branch 'develop' ofJoaquim2021-04-26173-10626/+10062
| |\ \ | | | | | | | | | | | | https://github.com/JF002/InfiniTime into StepsApp
| * | | Fix button size and default step goalJoaquim2021-04-202-12/+8
| | | |
| * | | New Steps appJoaquim2021-04-1915-18/+542
| | | | | | | | | | | | | | | | | | | | | | | | Settings to set the steps goal More detail in Motion app New 42px Font
* | | | Merge pull request #349 from Avamander/patch-2JF0022021-05-153-3/+3
|\ \ \ \ | | | | | | | | | | Switched to booleans for infinite while loops
| * | | | Switched to booleans for infinite while loopsAvamander2021-05-143-3/+3
| | |_|/ | |/| |
* | | | Merge pull request #350 from Avamander/patch-3JF0022021-05-153-5/+9
|\ \ \ \ | | | | | | | | | | Added braces to a few if statements
| * | | | Added braces to a few if statementsAvamander2021-05-143-5/+9
| |/ / /
* / / / Fixed a naming inconsistency of DisplayApp::ReturnApp and a few formatting ↵Avamander2021-05-142-19/+19
|/ / / | | | | | | | | | errors
* | | SystemInfo app screenStoian Minaiev2021-05-101-3/+3
| | | | | | | | | First screen. Let the build date and build time string be centered as well as the others
* | | Fix a possible double free in StopWatch::Refresh.Martin Ashby2021-05-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The lv_obj_del is called on btnStopLap when transitioning to the initial state, however the variable isn't then set to null. A subsequent call to Refresh would attempt to delete the already freed object. This could be triggered by stopping the stop watch, then pressing the physical button on the watch. Fixes https://github.com/JF002/InfiniTime/issues/315
* | | Merge pull request #319 from DavidVentura/use-byte-for-ppgJF0022021-05-022-8/+8
|\ \ \ | | | | | | | | Use int8_t for PPG data array
| * | | Fix #209. Use int8_t for PPG data arraydavid2021-05-012-8/+8
| | |/ | |/|
* | | Merge pull request #314 from eivindm/improved_heartbeat_in_watchfaceJF0022021-05-021-10/+7
|\ \ \ | | | | | | | | Improve design of heartbeat data in digital watchface
| * | | Show heartbeat icon in watchface in gray if data is missingEivind Mork2021-05-021-10/+7
| |/ /
* | | Merge pull request #301 from petterhs/vibJF0022021-05-027-1/+17
|\ \ \ | | | | | | | | Short vibration when enabling it in quick settings menu
| * | | short vibration when enabling itpetter2021-05-027-1/+17
| |/ /
* | | Merge pull request #275 from panos/navigation-textJF0022021-05-021-1/+1
|\ \ \ | | | | | | | | Changed text in Navigation
| * | | Changed text in NavigationPanagiotis Vasilopoulos2021-04-171-1/+1
| | | |
* | | | Merge pull request #318 from Kozova1/TypoFixJF0022021-05-021-3/+3
|\ \ \ \ | | | | | | | | | | Fix typo in src/displayapp/fonts/README.md
| * | | | Fix typo in src/displayapp/fonts/README.mdKozova12021-04-301-3/+3
| | |/ / | |/| | | | | | | | | | Signed-off-by: Kozova1 <mug66kk@gmail.com>
* | | | Merge pull request #308 from joaquimorg/LVGL-UpdateJF0022021-05-021-0/+0
|\ \ \ \ | |/ / / |/| | | Update LVGL
| * | | Update LVGLJoaquim2021-04-211-0/+0
| | |/ | |/| | | | | | | fixes from upstream
* | | Changed access modified indentationAvamander2021-04-2483-174/+174
| | |
* | | Reformatted all the files according to clang-format styleAvamander2021-04-24177-10658/+10093
| | |
* | | Fix formatting issue on the lap counter in Stopwatch (display lap counter on ↵Jean-François Milants2021-04-201-2/+2
| | | | | | | | | | | | 2 characters).
* | | Fix formatting issue on the lap counter in Stopwatch.Jean-François Milants2021-04-191-2/+2
|/ /
* | Fix a display glitch when an OTA is initiated while an app (other than ↵Jean-François Milants2021-04-181-0/+6
| | | | | | | | Clock) was open and while the device was in sleep mode.
* | Fix display consistency with the HR measurement when measurements are ↵Jean-François Milants2021-04-181-4/+10
| | | | | | | | already running when the app is open.