aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/SystemInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused pointer to DisplayApp member variables (#2125)NeroBurner2024-09-291-2/+1
| | | | | | | | 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.
* Display the SPI flash JEDEC IDs in SystemInformation.Jean-François Milants2024-08-051-2/+9
| | | | This is needed since a new memory chip will be used in future batches of PineTimes.
* Fix potential buffer overflows when calling sprintfMingjie Shen2023-12-011-4/+4
| | | | | | | | | | 1. Replace sprintf with snprintf, which is safer 2. An unsigned int or unsigned long int requires 11 bytes to print (including the null terminator) 3. Use PRIu16 macro to print uint16_t 4. Format string "#%2d %2d:%02d:%02d.%02d\n" in StopWatch::stopLapBtnEventHandler() requires at least 17 bytes. The 16-byte buffer would clearly be overrun if sprintf were used.
* Fix code formattingJean-François Milants2023-05-181-2/+1
|
* Enable malloc error and stack overflow error detection in FreeRTOS. Count ↵Jean-François Milants2023-05-181-10/+13
| | | | them and display them in the SystemInfo app.
* Refactor, document and fix the Watchdog driver (#1710)JF2023-04-301-10/+10
| | | | | | | * Refactor and document the Watchdog driver to make it more readable. Fix the configuration of the behaviours configuration that was not properly implemented (but it didn't cause any side effect since the correct value was eventually set in NRF_WDT->CONFIG). Fix the wrong interpretation of the reset reasons caused by implicit conversions of int to bool.
* date: Remove date libRiku Isokoski2023-02-251-0/+1
| | | | DateTimeController can provide everything we need.
* watchdog: Replace WatchdogView with const WatchdogRiku Isokoski2023-02-251-1/+1
|
* screens: Remove displayapp parameter from screenRiku Isokoski2023-02-251-6/+6
| | | | | | | | The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
* displayapp: Make Ble references constRiku Isokoski2023-02-241-1/+1
|
* displayapp: Make Cst816S references constRiku Isokoski2023-02-241-1/+1
|
* displayapp: Make Battery class references constRiku Isokoski2023-02-241-1/+1
|
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-2/+2
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* Centralize most color definitions (#1258)Riku Isokoski2022-08-161-1/+2
|
* Date formats: Use ISO 8601 (#1040)Zach DeCook2022-07-251-3/+3
| | | | | | | | | | | * System Info: Use YYYY-MM-DD The date format with the slashes has different meaning in different regions * Terminal Watchface: Use dashes as date separator Using the popular ISO 8601 format instead Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
* Display target build variant in system info screenChristoph Honal2022-07-071-2/+8
|
* Tweak gamma on ST7789 and match UI colorsRiku Isokoski2022-04-251-21/+21
| | | | | This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
* Improved format specifiers, bracing, removed C-style casts, whitespace fixes ↵Avamander2021-12-091-3/+5
| | | | and removed Tiles shadowing
* Brace style and whitespace fixesAvamander2021-12-041-1/+1
|
* About : Remove misleading infoSteveis2021-11-281-5/+2
| | | | Removed Steps which is hard coded to display 0. Could be misleading and is using up memory.
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-3/+3
| | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
* Memory savings by replacing stringsRiku Isokoski2021-10-291-12/+14
|
* Merge pull request #507 from Riksu9000/fit_more_tasksJF2021-10-161-5/+8
|\ | | | | Fit more tasks in SystemInfo
| * Merge branch 'develop' into fit_more_tasksRiku Isokoski2021-07-251-14/+33
| |\
| * | FixRiku Isokoski2021-07-211-2/+1
| | |
| * | Fit more tasks in SystemInfoRiku Isokoski2021-07-211-4/+8
| | |
* | | Replaced "JF002" in github URLs with "InfiniTimeOrg"mabuch2021-10-151-1/+2
| | |
* | | Merge branch 'develop' into update_touch_driverRiku Isokoski2021-09-141-7/+0
|\ \ \
| * \ \ Merge branch 'develop' into refresh_reworkRiku Isokoski2021-08-281-3/+3
| |\ \ \
| * \ \ \ Merge branch 'develop' into refresh_reworkRiku Isokoski2021-08-031-15/+34
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Refresh reworkRiku Isokoski2021-07-191-7/+0
| | |_|/ | |/| |
* | | | Merge branch 'develop' into update_touch_driverRiku Isokoski2021-08-281-3/+3
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch 'develop' into new_touch_handlerRiku Isokoski2021-07-251-15/+34
| |\ \ \ | | | |/ | | |/|
| * | | New touch handler, with issuesRiku Isokoski2021-07-151-3/+3
| | |/ | |/|
* | | Merge branch 'develop' into update_touch_driverRiku Isokoski2021-08-171-15/+34
|\ \ \ | | |/ | |/|
| * | Fix compile warningsJonathan Vander Mey2021-07-251-0/+2
| | |
| * | Add task state info to SystemInfoRiku Isokoski2021-07-251-10/+32
| | |
| * | Code cleanup (#466)Riku Isokoski2021-07-251-5/+0
| |/ | | | | | | * Code cleanup * Remove override again
* / Update touchpad driverRiku Isokoski2021-07-141-3/+9
|/
* Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-111-1/+1
| | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* Float voltage to int (#444)Riku Isokoski2021-07-021-10/+2
| | | | * Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
* static_cast cleanupAvamander2021-07-021-2/+2
|
* Fixed a bunch of format specifiersAvamander2021-07-021-2/+2
|
* SPI flash sleep if bootloader >= 1.0.0 (#322)Neil O'Fix2021-06-261-4/+7
| | | | | | * Retrieve and display bootloader version - Display bootloader version on System Info screen - Enable SPI flash sleep mode if bootloader version >= 1.0.0 * Wait for SPI flash to wakeup before starting OTA DFU
* Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander2021-06-221-3/+0
| | | * Removed an illogical comparison
* Add support for BMA425 acceleration sensor. (#440)JF0022021-06-191-6/+21
| | | * Add support for BMA425 acceleration sensor.
* Changed the namespace of SystemInfo::sortById to avoid a name conflict (#360)Avamander2021-06-121-1/+1
|
* Fix scrollbar (#382)Riku Isokoski2021-06-121-1/+1
|
* Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants2021-06-101-5/+5
| | | | code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
* 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)